On Nov 3, 11:41 am, pit <[email protected]> wrote: > i wrote a macfuse plugin that fetches data from a database and > represents contents as txt files. > > now i want these faked textfiles to open with textedit or what ever > the user has as prefered app. > > can anyone hint me to specs or samples on how to return a file content > type or application-association > from (i guess) attributesOfItemAtPath: ?
On Leopard, you could give the system type and creator codes for your files by providing a com.apple.FinderInfo xattr on your files. This, however, won't help you under Snow Leopard, where Launch Services no longer pays attention to the type and creator codes. I think that, if you want to work the same on Leopard and Snow Leopard, David Lyons's suggestion of using the file extension is probably your best bet. Cheers, -M --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MacFUSE" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/macfuse?hl=en -~----------~----~----~----~------~----~------~--~---
