Re: NSDocument subclass (newbie) question
Re: NSDocument subclass (newbie) question
- Subject: Re: NSDocument subclass (newbie) question
- From: mark <email@hidden>
- Date: Sun, 23 Jan 2005 18:40:17 -0800
Thank you--XCode was the key. I looked in the NIB files, and in the
info.plist that was included in the project, but didn't realize there was a
further place to look (the project information)
Thanks!
Mark
> From: "Louis C. Sacha" <email@hidden>
> Date: Sun, 23 Jan 2005 18:27:28 -0800
> To: email@hidden
> Cc: email@hidden
> Subject: Re: NSDocument subclass (newbie) question
>
> Hello...
>
> You don't need to make any connections in InterfaceBuilder to do
> this, the relevant info is actually stored in your applications
> Info.plist file.
>
> In Xcode, select your application in the "Targets" group, and open
> the inspector. One of the tabs is "Properties", and you can define
> which NSDocument subclass is used for any filetypes that your
> application will be able to open.
>
> All you have to do is add/edit the entries in the "Document Types" section.
>
> Hope that helps,
>
> Louis
>
>
>> Where do you tell Cocoa what your document subclass is? I looked
>> through the documentation, and saw references to the "file's owner".
>> However, in the Sketch app, this points to a window controller
>> class, not the NSDocument subclass. There's other references to the
>> info.plist file, but in the Sketch example, that didn't have any
>> reference to the NSDocument subclass name.
>>
>> Thanks for any help!
>>
>> Mark
>>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden