• 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
Re: Attaching file types & icons to app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Attaching file types & icons to app


  • Subject: Re: Attaching file types & icons to app
  • From: Stéphane Sudre <email@hidden>
  • Date: Wed, 23 Jun 2004 15:50:25 +0200

On Jun 23, 2004, at 3:01 PM, OL&L Lists wrote:

This may be a newbie question:

I have a Cocoa app I have written. My app has one type of file that it saves. I want to attach a custom icon for my file's type so that it is asscociated with my application.

1) How do I make my file type asscociate with my application?

2) How do I make my file's icon show up in the Finder with my own custom file icon so that it matches my app?

I am doing all of this in Cocoa and XCode/IB 1.2

1. Open your project in Xcode.

2. Select your Target in the Groups & Files column

3. Use the shortcut "Command + I" to display the Target Inspector

4. Select the TabView Item named "Properties"

5. In the Document Types array:

i. Click on the (+) button to add a document type

ii. Enter the needed information

6. Rebuild your project

7. You may have to logout/logout to have the modifications taken into consideration by the Finder.

My $0.02
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Attaching file types & icons to app (From: OL&L Lists <email@hidden>)

  • Prev by Date: checkButton Binding in a tableView
  • Next by Date: A new bug in NSTableView in Mac OS X 10.3?
  • Previous by thread: Attaching file types & icons to app
  • Next by thread: Re: Attaching file types & icons to app
  • Index(es):
    • Date
    • Thread