On Mar 9, 2015, at 04:53, Roland King <r...@rols.org> wrote:
> 
> 
>> On 9 Mar 2015, at 15:38, Patrick J. Collins <patr...@collinatorstudios.com> 
>> 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). 

Figure 3-1 in The Document-Based App Programming Guide for Mac illustrates this:

https://developer.apple.com/library/mac/documentation/DataManagement/Conceptual/DocBasedAppProgrammingGuideForOSX/Art/newproject_2x.png

Make sure you read that guide:

https://developer.apple.com/library/mac/documentation/DataManagement/Conceptual/DocBasedAppProgrammingGuideForOSX/Introduction/Introduction.html


_______________________________________________

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

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

Reply via email to