Re: Can't get my document type to show up...
Re: Can't get my document type to show up...
- Subject: Re: Can't get my document type to show up...
- From: matt neuburg <email@hidden>
- Date: Tue, 30 Dec 2003 09:14:25 -0800
On Mon, 29 Dec 2003 12:53:45 -0700, Jiva DeVoe <email@hidden> said:
>
I have a document based application which saves it's documents using
>
the overridden - (NSData *)dataRepresentationOfType:(NSString *)aType
>
method. The "aType" is passed the correct type information as set up
>
in my plist. But no matter what I do to my plist, my document type on
>
my documents remains "DocumentType" and my custom icon does not get
>
set. Here's my plist entries, and my code. This fires off the default
>
"first responder" "saveDocument" action. What am I doing wrong?
>
>
<key>CFBundleTypeOSTypes</key>
>
<array>
>
<string>TestDocOsType</string>
>
</array>
Well, for one thing, that's not a valid OSType. That might not be the source
of the problem, but it's a thing you're doing wrong.
Maybe part of the solution here would be to omit the fields you don't
understand and don't need. As the docs explain, one of the three type
designators is all you need, so perhaps you should try confining yourself to
just CFBundleTypeExtensions and see if that helps any. m.
--
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
AppleScript: the Definitive Guide! NOW SHIPPING...! (Finally.)
http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
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.