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 <aired...@tularosa.net> wrote:
From: David Blanton <aired...@tularosa.net>
Subject: Re: NSDocument
To: "Matt Neuburg" <m...@tidbits.com>
Cc: cocoa-dev@lists.apple.com
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 (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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Reply via email to