Handling open virtual file from any 3rd party app (such as TextEdit, etc..)

53 views
Skip to first unread message

nirla...@gmail.com

unread,
Jan 6, 2015, 2:47:33 AM1/6/15
to osxfus...@googlegroups.com
Hello,
I am using the OS X fuse with a combination of the 2 provided samples:
HelloFS
LoopbackFS

My project combining both local files and virtual files (a simple NSArray with strings which represents filenames).
I am trying to catch/handle an event when a virtual file is being opened from a 3rd party applications such as:
TextEdit, Word, Preview etc... (see attached image)
The panel also known as "Open and Save Panel"

I would like to determine that an action is being performed specifically from a 3rd party and not just opening a file.
I tried to add logs for all the Fuse's methods but i cant find any special pattern for determination.

Any suggestions?
Thanks!

Screen Shot 2015-01-06 at 9.42.50 AM.png

Sam Moffatt

unread,
Jan 6, 2015, 10:44:33 AM1/6/15
to osxfus...@googlegroups.com
Hi there,

Your filesystem should present a consistent view at all times. You shouldn't attempt to infer how you are being called and mutate because there are many intermediate API's between you and the original call. Doing otherwise will sooner or later put you in debug hell due to inconsistent returns. 

Cheers,

Sam

--
Sam Moffatt

Note: I'm not at my desk, responses may be delayed. Apologies for the typos, smartphones aren't all that smart. 

--
You received this message because you are subscribed to the Google Groups "OSXFUSE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osxfuse-grou...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<Screen Shot 2015-01-06 at 9.42.50 AM.png>
Reply all
Reply to author
Forward
0 new messages