• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
how to set Document type and its icon programatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: how to set Document type and its icon programatically
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: [Moderator] Re: Games for iPhone
  • Next by Date: Re: NSOperationQueue
  • Previous by thread: Re: File I/O
  • Next by thread: Re: how to set Document type and its icon programatically
  • Index(es):
    • Date
    • Thread