Re: How to create to-many accessor methods at runtime
Re: How to create to-many accessor methods at runtime
- Subject: Re: How to create to-many accessor methods at runtime
- From: Mike Abdullah <email@hidden>
- Date: Tue, 8 Jul 2008 10:28:17 +0100
On 8 Jul 2008, at 07:10, Steve Weller wrote:
Just to follow up on my own question...
What I am attempting to do is not working. -valueForKey: does not
look for methods with -respondsToSelector: to figure out if methods
exist sufficient to have KVC. So overriding this has no effect. My
only option, it seems, is to use +resolveInstanceMethod and actually
create the methods that are needed.
Or, you know, just override -valueForKey: ? NSArray and the other
contain classes do just that to get their custom behaviour.
Mike.
_______________________________________________
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