• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Document based architecture
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Document based architecture


  • Subject: Re: Document based architecture
  • From: Bavarious <email@hidden>
  • Date: Mon, 09 Mar 2015 08:14:05 -0300

On Mar 9, 2015, at 04:53, Roland King <email@hidden> wrote:
>
>
>> 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).

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 (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


References: 
 >Document based architecture (From: "Patrick J. Collins" <email@hidden>)
 >Re: Document based architecture (From: Roland King <email@hidden>)

  • Prev by Date: Re: Document based architecture
  • Next by Date: Re: disabling Apple Crash Reporter
  • Previous by thread: Re: Document based architecture
  • Next by thread: Re: Cocoa-dev Digest, Vol 12, Issue 137
  • Index(es):
    • Date
    • Thread