• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: (newbie): how to create a 2nd document type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >(newbie): how to create a 2nd document type (From: Mark Dawson <email@hidden>)

  • Prev by Date: (newbie): how to create a 2nd document type
  • Next by Date: Re: Database
  • Previous by thread: (newbie): how to create a 2nd document type
  • Next by thread: RE: (newbie): how to create a 2nd document type
  • Index(es):
    • Date
    • Thread