How to set Document Icon when saving

2008-03-06 Thread Lincoln Green
I am making a simple text editor(document based). I have set the app  
icon, but can't figure out how to make the documents saved with the  
text editor have my document icon. I am saving files using the  
following functions


writeRTFDToFile:atomically:YES
writeToFile:atomically:NO

How do you set the document icon?
___

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 [EMAIL PROTECTED]


Re: How to set Document Icon when saving

2008-03-06 Thread j o a r


On Mar 6, 2008, at 4:23 PM, Lincoln Green wrote:


How do you set the document icon?


Typically you don't. The Finder will query Launch Services and  
automatically associate your documents with the correct icon based on  
the information found in your applications property list - And also  
based on user preferences, in the case of a shared document type with  
multiple possible applications to choose from.


See for example:







j o a r


___

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 [EMAIL PROTECTED]