On Mar 2, 2009, at 1:41 PM, jeff...@aol.com wrote:
Thanks for the info, I will go with file type and creator instead of an extension.
You might want to do both. Using only a type & creator will keep Mac purists happy - until they try sending an attachment over E-Mail, in which case the codes might be lost unless both clients support flattening and unflattening the metadata. Keep in mind that there aren't many Mac purists left, and the ones that are left are usually trolls.
I'm using dataRepresentationOfType to save the file (I need 10.3 compatibility) but it does not set the file type and creator. Do you set that after the file is saved or use something other than dataRepresentationOfType to save the file?
You need to use Carbon and the FSSetCatalogInfo() function to set type and creator data. Read up about FileInfo for more details.
Nick Zitzmann <http://www.chronosnet.com/> _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com