Hello List,is there a complete list of indexed accessor names that can be implemented? The KVC guides just mentions the basic ones
- (NSUInteger)countOf<key> - (id)objectIn<key>AtIndex:(unsigned)theIndex - (void)get<key>:(id *)objsPtr range:(NSRange)range - (void)insertObject:(id)obj in<key>AtIndex:(NSUInteger)theIndex - (void)removeObjectFrom<key>AtIndex:(NSUInteger)theIndex- (void)replaceObjectIn<key>AtIndex:(NSUInteger)theIndex withObject: (id)obj
I had this in my code - (void)remove<key>AtIndexes:(NSIndexSet *)indexes { NSMutableArray *kva = [self mutableArrayValueForKey:@"<key>"]; [kva removeObjectsAtIndexes:indexes]; }which caused an endless recursion because [kva removeObjectsAtIndexes:] assumes that remove<Key>AtIndexes: is the KVC implementation for it. Of course it was not. I can't find any mention in the documentation about this accessor name.
So, is there complete list of method names or is it just all NSMutableArray methods that contain "Objects" in their name with "Objects" replaced by "<key>" ?
Regards Markus -- __________________________________________ Markus Spoettl
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]