Re: Dynamically getting the type of ivars
Re: Dynamically getting the type of ivars
- Subject: Re: Dynamically getting the type of ivars
- From: Dave DeLong <email@hidden>
- Date: Mon, 01 Jun 2009 19:54:27 -0600
I just remembered that I never made good on my promise to post why I
needed this.
In a nutshell, I wrote some code that lets me add basic NSCoding
compliance to any class at runtime. The only requirement is that the
target class has to be KVC-compliant (since I pull values in and out
using valueForKey: and setValue:forKey:)
I wrote a bit about the process here: http://davedelong.com/blog/2009/04/13/aspect-oriented-programming-objective-c
Dave
On Apr 13, 2009, at 3:57 PM, Dave DeLong wrote:
I understand the distinction, and your clarification has prompted me
to think of another way I could do this. Currently, the code where
I'm getting the list of Ivars is in a class method. However, I also
have an instance method where I'm doing something very similar. I
could move the type getting into that method, since in there I'm
calling [self valueForKey:]...
If this seems mysterious to you, I'll post again when I've got it
working right and explain what I'm up to.
Thanks again,
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:
This email sent to email@hidden