• 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: How to run a panel that customizes a new NSDocument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to run a panel that customizes a new NSDocument


  • Subject: Re: How to run a panel that customizes a new NSDocument
  • From: Graham Cox <email@hidden>
  • Date: Wed, 21 Oct 2009 15:57:04 +1100


On 21/10/2009, at 3:43 PM, Ben Haller wrote:

There must be a good, clean way to do this. Anyone?


Well, the expected way is to have different types for your documents. You can still map them all to the same class, and discriminate in the - initWithType:error: method to set up the appropriate model.

However, if you really can't or don't want to do that, I think what you've done is right. Because you have a special designated initializer, you have no option but to manually make the controllers and add the document to the controller.

--Graham


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: How to run a panel that customizes a new NSDocument
      • From: Ben Haller <email@hidden>
References: 
 >How to run a panel that customizes a new NSDocument (From: Ben Haller <email@hidden>)

  • Prev by Date: Re: Calling method in brand new view to set a variable?
  • Next by Date: Re: Questions about Nib Object Retention
  • Previous by thread: How to run a panel that customizes a new NSDocument
  • Next by thread: Re: How to run a panel that customizes a new NSDocument
  • Index(es):
    • Date
    • Thread