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 <overl...@lioncourt.com>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 (Cocoa-dev@lists.apple.com)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/steven.degutis%40gmail.com
>
> This email sent to steven.degu...@gmail.com
>



-- 
Steven Degutis
http://www.thoughtfultree.com/
http://www.degutis.org/
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to