Re: NSDocument
Re: NSDocument
- Subject: Re: NSDocument
- From: David Blanton <email@hidden>
- Date: Thu, 14 Jan 2010 14:51:22 -0700
No. This is a vanilla document based app with two nibs, MainMenu and
MyDocument as created by the project template.
The document window is in MyDocument.xib.
On Jan 14, 2010, at 2:41 PM, Jeffrey Oleander wrote:
On Thu, 2010/01/14, David Blanton <email@hidden> wrote:
From: David Blanton <email@hidden>
Subject: Re: NSDocument
To: "Matt Neuburg" <email@hidden>
Cc: email@hidden
Date: Thursday, 2010 January 14, 15:19
Thank you for commenting but now I am
really confused. When a project is created from the
document based template it contains files MyDocument.h and
MyDocument.m which define the interface and implementation
for a class MyDocument that inherits from NSDocument.
Whne built and and run if any one of many init methods are
implemented and awakeFromNib is implemented these are
called.
So, I do not understand what you have said.
I'm not sure what you already know and don't know.
The nib (or the xib from which the nib is generated)
contains resources. Typically, and application has
a Main Menu nib, which may also contain definitions
for a window. But an app can have many nibs, each
of which defines different resources.
The main nib gets loaded automagically; the others
only get loaded when they're requested.
The window(s) for your NSDocument sub-class may be
in the main nib or in another.
_______________________________________________
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