Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSObject's bind:toObject:forKeyPath:options



On Nov 24, 2007, at 12:26 AM, Mike R. Manzano wrote:

What does NSObject's implementation of bind:toObject:forKeyPath:options: do?

Should my class' implementation of it call it on its superclass?

It should if it doesn't recognize the passed-in binding name. See the comments in the override of it in Leopard /Developer/Examples/AppKit/ Sketch/SKTGraphicView.m.


David's summary of what the default implementation does was spot on. SKTGraphicView shows an example where that default implementation isn't good enough though. It has to override -unbind: too, to match.

-- Mark
_______________________________________________


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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.