how to set Document type and its icon programatically
how to set Document type and its icon programatically
- Subject: how to set Document type and its icon programatically
- From: Nick Rogers <email@hidden>
- Date: Fri, 19 Sep 2008 14:52:50 +0530
Hi,
My cocoa app is not a document based app, but saves a binary file to
the disk.
I can set this file's name and extension and icon by going to the
Target properties and adding a new document type there.
It was working fine and the resulting saved file was given the
required icon.
But then I had to embed my app into another app directory, since then
its not working (no icon is associated now).
The directory structure is now:
myOuterApp/Contents/MacOS/myInnerApp.app
So the inner app's saved file now doesn't display the required icon.
Will this problem be resolved if I set the icon programatically?
How to go about this?
Thanks,
Nick
_______________________________________________
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