Re: (newbie): how to create a 2nd document type
Re: (newbie): how to create a 2nd document type
- Subject: Re: (newbie): how to create a 2nd document type
- From: Charlton Wilbur <email@hidden>
- Date: Wed, 26 Jan 2005 22:01:55 -0500
On Jan 26, 2005, at 9:43 PM, Mark Dawson wrote:
I'm unclear about the process of creating a new document type. For
simplicity, let's say I'm just making a subclass of an existing
document type ("SubClassDocument"). What I'm not clear on is how my
new document type gets invoked. What I know is what I've done is
missing a step (or two), as the super class's document is being
created, NOT my new document.
(1) IB: Menu:
(a) I've added "New SubClass" (cmd-shift-N) to the File menu
(b) associated it with the first responder
(c) connected it to the "newDocument" action
This needs to be connected not to -newDocument: (which creates a new
document of the default document type) but to an action that calls
-[NSDocumentController openUntitledDocumentOfType:display:].
Charlton
--
Charlton Wilbur
email@hidden
email@hidden
_______________________________________________
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