• 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: Multiple Document Types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple Document Types


  • Subject: Re: Multiple Document Types
  • From: Thom McGrath <email@hidden>
  • Date: Sun, 30 Oct 2005 09:59:46 -0500

I was reading other responses that say it is not necessary to subclass NSDocumentController just to have multiple document types.

The code posted is in an IBAction in my application's main controller. It's connected to a menu item. I simply need to create a new document of the specified type, rather than of the default type.

--
Thom McGrath, <http://www.thezaz.com/>
"You don't need eyes to see, you need vision" - Maxi Jazz in "Reverence" by Faithless



On Oct 30, 2005, at 12:27 AM, mmalcolm crawford wrote:

It's not entirely clear what you're doing here.
Is the code above in a method of a subclass of NSDocument?
There should be no need for this. An appropriate instance will be created and opened automatically if you have set up the document descriptions correctly in Xcode. If you need a means to create new instances of specific classes, create a custom subclass of NSDocumentController.

_______________________________________________ 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: 
 >Multiple Document Types (From: Thom McGrath <email@hidden>)
 >Re: Multiple Document Types (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: An OutlineView with Finder Editing Behavior
  • Next by Date: Uptime to Date/time
  • Previous by thread: Re: Multiple Document Types
  • Next by thread: Question about associating file types to applications
  • Index(es):
    • Date
    • Thread