• 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: NSObject's bind:toObject:forKeyPath:options
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: NSObject's bind:toObject:forKeyPath:options (From: "Mike R. Manzano" <email@hidden>)

  • Prev by Date: Re: NSWindow - Sheets - background alpha value
  • Next by Date: Re: Adding/removing managed objects: how to know the maximum index?
  • Previous by thread: Re: NSObject's bind:toObject:forKeyPath:options
  • Next by thread: NSTableView apparently doesn’t respect allowsEmptySelection:NO anymore on Leopard
  • Index(es):
    • Date
    • Thread