GMUserFileSystem


Superclass: NSObject
Declared In: GMUserFileSystem



This class controls the life cycle of a user space file system. The GMUserFileSystem is typically instantiated with a delegate that will serve file system operations. The delegate needs to implement some or all of the methods in the GMUserFileSystemOperations informal protocol. It may also implement methods from the GMUserFileSystemLifecycle and GMUserFileSystemResourceForks protocols as necessary.

After instantiating a GMUserFileSystem with an appropriate delegate, call mountAtPath:withOptions: to mount the file system. A call to unmount or an external umount operation will unmount the file system. If the delegate implements methods from the GMUserFileSystemLifecycle informal protocol then these will be called just before mount and unmount. In addition, the GMUserFileSystem class will post mount and unmount notifications to the default notification center. Since the underlying GMUserFileSystem implementation is multi-threaded, you should assume that notifications will not be posted on the main thread. The object will always be the GMUserFileSystem* and the userInfo will always contain at least the kGMUserFileSystemMountPathkey.

The best way to get started with GMUserFileSystem is to look at some example file systems that use MacFUSE.framework. See the example file systems found here.



Last Updated: Monday, November 17, 2008
HTML documentation generated by HeaderDoc