Re: NSObject's bind:toObject:forKeyPath:options
Re: NSObject's bind:toObject:forKeyPath:options
- Subject: Re: NSObject's bind:toObject:forKeyPath:options
- From: Keary Suska <email@hidden>
- Date: Sun, 25 Nov 2007 19:11:48 -0700
- Thread-topic: NSObject's bind:toObject:forKeyPath:options
on 11/24/07 7:38 PM, email@hidden purportedly said:
> Well, for one, Apple's own "joystick" example overrides it:
>
> http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaBindings/Concep
> ts/HowDoBindingsWork.html
I believe in this case they are being merely illustrative. You get bindings
support for free. You only need to override the method when you need
additional behavior, which is uncommon, IMHO. Hence, the question.
>> on 11/24/07 1:26 AM, Keary Suska purportedly said:
>>
>>> What does NSObject's implementation of
>>> bind:toObject:forKeyPath:options: do?
>>>
>>> Should my class' implementation of it call it on its superclass?
>>
>>
>> I would ask, why do you feel the need to override the method? Binding
>> structures have introspection, if you needed that. Otherwise, I
>> would say,
>> yes, if you override it, you should call the method on super.
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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