Re: Document based architecture
Re: Document based architecture
- Subject: Re: Document based architecture
- From: Roland King <email@hidden>
- Date: Mon, 09 Mar 2015 15:53:19 +0800
> On 9 Mar 2015, at 15:38, Patrick J. Collins <email@hidden> wrote:
>
> Hi everyone,
>
> It was recently suggested to me that my app should be a document based
> architecture design since I want File -> Open -> <select file> to bring up a new
> "document" window. Googling this topic has been a bit frustrating... I
> see lots of references in apple's documentation saying things like "The
> Xcode development application provides project templates for
> document-based applications." Which I cannot find anywhere in XCode...
>
> Can anyone please shed some light on where I can get real-world instructions
> on how to setup this sort of design?
>
> Thanks.
>
File->New->Project
Select Application -> Cocoa Application
On the following sheets is a checkbox for 'create document-based application'. Check that.
That's the easiest way to start, although it's also not very hard to add document capabilities to a standard cocoa GUI app if you want (and looking at the generated code from the template shows you pretty much what you have to do).
_______________________________________________
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