Re: Unrecognized document type
Re: Unrecognized document type
- Subject: Re: Unrecognized document type
- From: Kyle Sluder <email@hidden>
- Date: Tue, 17 May 2011 12:29:44 -0700
On Tue, May 17, 2011 at 12:24 PM, McLaughlin, Michael P.
<email@hidden> wrote:
> With Xcode 3.2.6, I am getting the (well-discussed) error
>
> The OutType type doesn't map to any NSDocumentClass.
>
> after
>
> theOutDoc = [[NSDocumentController sharedDocumentController]
> makeUntitledDocumentOfType:@"OutType" error:outError];
You should be using the document type's UTI here. The old-style
NSDocument type names are deprecated.
>
> I cannot see where I went wrong. My AppDelegate plist shows the four types
> of documents that the app is supposed to recognize, all with correct names.
You mean your Info.plist. Post that here so we can make sure you've
filled out all the appropriate keys.
--Kyle Sluder
_______________________________________________
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