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: insertObject:in<myManagedObject>AtIndex:




On 20-Oct-07, at 3:01 AM, Steven W Riggins wrote:

Heyas,

Am going through Hillegass' book boning up on bindings and such, and am doing the undo stuff with bindings where I wrote a insertObject:inEmployeesAtIndex: and removeObjectFromEmployeesAtIndex: method.

Ok so that is fine and dandy, I read through the cocoa bindings docs, but I can't for the life of me find where this magic formula for insert: and remove: is to know that I could even write these methods in the first place.

Anyone have a better pointer? This is the kind of magic that makes bindings so confusing :)

Thanks!

Apart from the page Michael referenced, there are additional and more detailed comments for the methods -valueForKey: and -setValue:forKey: in NSKeyValueCoding.h; these comments also detail how to implement NSSet properties. This information should certainly be made available in the documentation and you may want to use Apple's feedback mechanism at the bottom of each page to help them make it more accessible...


dave
_______________________________________________


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: 
 >insertObject:in<myManagedObject>AtIndex: (From: Steven W Riggins <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.