• 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: I can't supply document reference to (init) with bindings, can I?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I can't supply document reference to (init) with bindings, can I?


  • Subject: Re: I can't supply document reference to (init) with bindings, can I?
  • From: Dave Carrigan <email@hidden>
  • Date: Sun, 29 Nov 2009 15:48:42 -0800

On Nov 29, 2009, at 3:31 PM, David Hirsch wrote:

> So: is there some tricky way to have the "add new course" button tell the courseController to add a new Course, but somehow call a custom init (like init:withDocument:) and supply some reference to the current document?  I doubt it, but it seems worth asking.


If courseController subclasses NSArrayController, then I think if you override -newObject, you can have it call whatever initializer you want.

--
Dave Carrigan
email@hidden
Seattle, WA, USA

_______________________________________________

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

References: 
 >I can't supply document reference to (init) with bindings, can I? (From: David Hirsch <email@hidden>)

  • Prev by Date: I can't supply document reference to (init) with bindings, can I?
  • Next by Date: Apple MVC and Document Based application confusion.
  • Previous by thread: I can't supply document reference to (init) with bindings, can I?
  • Next by thread: Re: I can't supply document reference to (init) with bindings, can I?
  • Index(es):
    • Date
    • Thread