Re: I can't supply document reference to (init) with bindings, can I?
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