Platforms to show: All Mac Windows Linux Cross-Platform
NSFileHandleMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa Tasks | MBS MacCocoa Plugin | 9.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Please call closeFile on the end if you want to close the file.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 2 properties
- property Handle as Integer
- property offsetInFile as UInt64
- 16 methods
- method acceptConnectionInBackgroundAndNotify
- method AvailableBytes as Integer
- method availableData as MemoryBlock
- method closeFile
- method Constructor Private
- method fileDescriptor as Integer
- method readDataOfLength(length as Integer) as MemoryBlock
- method readDataToEndOfFile as MemoryBlock
- method readInBackgroundAndNotify
- method readToEndOfFileInBackgroundAndNotify
- method seekToEndOfFile as UInt64
- method seekToFileOffset(offset as UInt64)
- method synchronizeFile
- method truncateFileAtOffset(offset as UInt64)
- method waitForDataInBackgroundAndNotify
- method writeData(data as MemoryBlock)
- 26 shared methods
- shared method fileHandleForReadingAtFile(path as folderitem) as NSFileHandleMBS
- shared method fileHandleForReadingAtPath(path as string) as NSFileHandleMBS
- shared method fileHandleForReadingFromFile(URL as folderitem, byref error as NSErrorMBS) as NSFileHandleMBS
- shared method fileHandleForReadingFromURL(URL as string, byref error as NSErrorMBS) as NSFileHandleMBS
- shared method fileHandleForUpdatingAtFile(path as folderitem) as NSFileHandleMBS
- shared method fileHandleForUpdatingAtPath(path as string) as NSFileHandleMBS
- shared method fileHandleForUpdatingFile(URL as folderitem, byref error as NSErrorMBS) as NSFileHandleMBS
- shared method fileHandleForUpdatingURL(URL as string, byref error as NSErrorMBS) as NSFileHandleMBS
- shared method fileHandleForWritingAtFile(path as folderitem) as NSFileHandleMBS
- shared method fileHandleForWritingAtPath(path as string) as NSFileHandleMBS
- shared method fileHandleForWritingToFile(URL as folderitem, byref error as NSErrorMBS) as NSFileHandleMBS
- shared method fileHandleForWritingToURL(URL as string, byref error as NSErrorMBS) as NSFileHandleMBS
- shared method fileHandleWithFileDescriptor(fd as Integer) as NSFileHandleMBS
- shared method fileHandleWithFileDescriptor(fd as Integer, closeOnDealloc as boolean) as NSFileHandleMBS
- shared method fileHandleWithNullDevice as NSFileHandleMBS
- shared method fileHandleWithStandardError as NSFileHandleMBS
- shared method fileHandleWithStandardInput as NSFileHandleMBS
- shared method fileHandleWithStandardOutput as NSFileHandleMBS
- shared method NSFileHandleConnectionAcceptedNotification as string
- shared method NSFileHandleDataAvailableNotification as string
- shared method NSFileHandleNotificationDataItem as string
- shared method NSFileHandleNotificationFileHandleItem as string
- shared method NSFileHandleNotificationMonitorModes as string
- shared method NSFileHandleOperationException as string
- shared method NSFileHandleReadCompletionNotification as string
- shared method NSFileHandleReadToEndOfFileCompletionNotification as string
This class has no sub classes.
Some methods using this class:
- NSPipeMBS.fileHandleForReading as NSFileHandleMBS
- NSPipeMBS.fileHandleForWriting as NSFileHandleMBS
- NSTaskMBS.setStandardError(p as NSFileHandleMBS)
- NSTaskMBS.setStandardInput(p as NSFileHandleMBS)
- NSTaskMBS.setStandardOutput(p as NSFileHandleMBS)
Some properties using for this class:
- NSUserUnixTaskMBS.standardError as NSFileHandleMBS
- NSUserUnixTaskMBS.standardInput as NSFileHandleMBS
- NSUserUnixTaskMBS.standardOutput as NSFileHandleMBS
Some examples using this class:
- /MacBase/NSFileHandle async reading
- /MacCocoa/NSTask/NSTask
- /MacCocoa/NSTask/NSTask live output
- /MacCocoa/NSTask/NSTask traceroute
- /MacCocoa/NSTask/NSTask with Arguments
- /MacCocoa/readToEndOfFileInBackgroundAndNotify Test
Blog Entries
- MonkeyBread Software Releases the MBS Xojo / Real Studio plug-ins in version 14.1
- MBS Xojo / Real Studio Plugins, version 14.1pr4
The items on this page are in the following plugins: MBS MacCocoa Plugin.
NSFileCoordinatorMBS - NSFileManagerMBS