Re: Converting a Cocoa Application project to a document-based one
Re: Converting a Cocoa Application project to a document-based one
- Subject: Re: Converting a Cocoa Application project to a document-based one
- From: Steven Degutis <email@hidden>
- Date: Fri, 5 Mar 2010 08:25:52 -0500
Hi Josh,
The basis of it are, create your NSDocument subclass, put the relevant
document-handling info into your Info.plist file, and hook up the
appropriate menu items (New, Save, Open, etc) to the First Responder. If you
look into the Document-based Cocoa App template, you can find what all of
these menu items hook up into, as well as seeing what the Info.plist is
looking for in terms of document-handling info.
-Steven
P.S. Any relation to Lestat?
On Thu, Mar 4, 2010 at 6:42 PM, Josh de Lioncourt <email@hidden>wrote:
> Hi all,
>
> First the question, in essence, is:
>
> If one starts with a project built using the Cocoa Application template,
> what steps are involved in changing that existing project to what Xcode will
> recognize as a Cocoa Document-based application?
>
> The background:
>
> I'm using a customized template for building a Cocoa application using the
> Renaissance framework, which is provided as part of the RenaissanceX
> distribution headed by Brian Smart.
>
> The Renaissance framework requires you use its own GSMarkupDocument class
> instead of the NSDocument one.
>
> I can sub-class GSMarkupDocument just fine, and have tried to replicate
> everything from the Cocoa Application for Document-Based apps template, but
> I must be missing a crucial step somewhere, as the app does not provide any
> of the basic functionality one would expect from a document-based app.
>
> Any help with this would be appreciated.
>
> Thanks.
>
> Josh
>
> _______________________________________________
>
> 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
>
--
Steven Degutis
http://www.thoughtfultree.com/
http://www.degutis.org/
_______________________________________________
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