Newbie Q : getting rid of MyDocument
Newbie Q : getting rid of MyDocument
- Subject: Newbie Q : getting rid of MyDocument
- From: email@hidden
- Date: Tue, 13 Jun 2006 10:00:10 +0200 (CEST)
- Importance: Normal
Hello all,
I've trying to make a ``Cocoa Application" copy of a working
``Cocoa Document-based Application".
(two motivations for that : 1) to learn how the NSDocument,
NSController architecture works beyond the basic "MyDocument.h&.m"
tool where everything is already done for you behind the scenes, and
2) better reusability : an ordinary .h,.m or .nib file can be
copied and put in another project in two or three clicks, using
"Add In Project", but MyDocument is a ``reserved keyword" in
Cocoa Document-based Applications, and
MyDocument.h,.m & .nib cannot be moved or copied that directly.)
So I created fresh new files YourDocument.h,.m,&.nib (YourDocument is
a subclass of NSDocument) in the new
project, and copied all the code, view data and connections. The
new project builds without problem, but I don't know what to do next :
where and how do I tell the application to launch YourDocument.nib
when the application is opened ?
Ewan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden