KVC - how to get properties into a common form?
KVC - how to get properties into a common form?
- Subject: KVC - how to get properties into a common form?
- From: Graham Cox <email@hidden>
- Date: Thu, 3 Apr 2008 22:29:42 +1100
Using -valueForKeyPath, returning an id.
Is there an easy way to convert whatever <id> is into a common form (a
string, in my case), or do I have to have a huge switch statement that
checks the class and calls different code for each kind to convert to
a string? (or similar, like an NSObject category that implements -
stringValue, overridden for every class). Just wondering if there's
something built-in that will do this already.
------
S.O.S.
_______________________________________________
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