Re: File formats in Cocoa
Re: File formats in Cocoa
- Subject: Re: File formats in Cocoa
- From: "Peter Karlsson" <email@hidden>
- Date: Wed, 16 Apr 2003 16:37:55 +0000
I tried the sketch app and changed the icons of both the app and the saved
file. The app icon changed as expected but when I saved a file the icon did
not change, it was still the old one. I restarted my Mac but no success. So
I took the app to my other Mac and saved a file and the file icon changed
there. So I suppose the icon was saved somewhere on my first Mac, can
someone please tell me where?
Peter
From: Greg Hulands <email@hidden>
To: "Peter Karlsson" <email@hidden>
CC: email@hidden
Subject: Re: File formats in Cocoa
Date: Wed, 16 Apr 2003 21:03:26 +1000
File Formats have a look at NSCoder and NSArchiver and their subclasses.
Applications own an extension on a document. You set the icon in the build
settings in Project Builder.
Have a look at the sketch example that comes with the developer tools.
HTH,
Greg
On Wednesday, April 16, 2003, at 07:44 PM, Peter Karlsson wrote:
Dear list!
I want to save a file that have my own format, I also want the file to be
saved with my own icon. I have looked at the Monochrome Image example app
so I understand the basic of NSSavePanel. Are there any example code on
this somewhere?
Peter
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
_______________________________________________
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.
_______________________________________________
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.
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
_______________________________________________
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.