This doc covers it. 

https://developer.apple.com/library/mac/documentation/General/Conceptual/MOSXAppProgrammingGuide/CoreAppDesign/CoreAppDesign.html#//apple_ref/doc/uid/TP40010543-CH3-SW1

Sent from my iPhone

> On Mar 1, 2016, at 6:33 PM, Daryle Walker <dary...@mac.com> wrote:
> 
> Apologies for this 101 question.
> 
> Tried out Mac programming a couple of years ago, pre-Swift and when 
> storyboards were about to come out for the Mac. I used XIBs back then. 
> Forward to a couple months ago, and I tried out a Mac programming book. I 
> started a new Xcode (7) default project (no docs, no Core Data) and turned on 
> both Swift and storyboards. The app shows a window when I first run it. I’m 
> thinking of being more formal and implement a New command.
> 
> I guess I can use "+ storyboardWithName: bundle:” and "- 
> instantiateControllerWithIdentifier:” to create a new window. But where does 
> the default one come from? Why did it initiate? Is it because the window in 
> the Main storyboard has the initial arrow on it? How can I turn off the 
> current automatic window on app-open? (I’ll reimplement it with 
> openUntitledFile.)
> 
> I remember for my first project a few years ago that I had to have an array 
> of NSWindow in my application delegate so each window keeps a reference 
> around. How is the storyboard's window in the new default app staying around 
> without an (obvious) reference?  There are no properties keeping a window 
> reference in the default code for the application delegate? Does this mean I 
> now don’t have to keep references for windows either?
> 
> ― 
> Daryle Walker
> Mac, Internet, and Video Game Junkie
> darylew AT mac DOT com 
> 
> _______________________________________________
> 
> 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/dangerwillrobinsondanger%40gmail.com
> 
> This email sent to dangerwillrobinsondan...@gmail.com

_______________________________________________

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