Re: Custom file types and extensions
Re: Custom file types and extensions
- Subject: Re: Custom file types and extensions
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 2 Mar 2009 14:05:56 -0700
On Mar 2, 2009, at 1:41 PM, email@hidden 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 (email@hidden)
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:
This email sent to email@hidden