On Thu, Jun 19, 2008 at 11:44 PM, Jason8 <[EMAIL PROTECTED]> wrote:
>
> Hi:
>
> I've been working through some of the tutorials and have a two
> questions.

If you are working through the YTFS tutorial you should be using the
MacFUSE 1.5 tag for the source:

http://macfuse.googlecode.com/svn/tags/macfuse-1.5/filesystems-objc/ytfs-tutorial/

I recently made some changes to the ytfs code to reflect minor changes
to the API that will be available in a future version of MacFUSE.
Don't worry, the old methods will still be supported for some time and
it will be easy to switch to the new ones when they come out.

I've updated the wiki page to reference the url for the 1.5 tag.

>
> First, contentsOfDirectoryAtPath - What calls this? It's not in the
> interface and I'm not subclassing. Specifically I'm looking at the

The framework will call contentsOfDirectoryAtPath:error: when it needs
to get the contents of a directory. It will call this method on the
delegate you provide (if the delegate implements it).

You don't need to subclass anything. You need to create a class that
acts as the delegate object that gets passed in when you alloc a
GMUserFileSystem; this class should implement some subset of the
informal protocol GMUserFileSystemFileOperations. See
<MacFUSE/GMUserFileSystem.h> for the list of possible methods to
implement and some (hopefully) helpful comments.

In the YTFS example, the YTFS class acts as the delegate. The file
system is initialized with the delegate in the completed
YTController.m file.

> YTFS but it works the same in my FS. Second, how do you register a FS
> so it appears in the finder's devices with an eject button?

Please read section 4 of the FAQ wiki page:

http://code.google.com/p/macfuse/wiki/FAQ

ted

> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"macfuse-devel" group.
To post to this group, send email to macfuse-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/macfuse-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to