string convertion: converting getter name to setter
string convertion: converting getter name to setter
- Subject: string convertion: converting getter name to setter
- From: steph thirion <email@hidden>
- Date: Fri, 5 Sep 2008 02:40:04 +0200
from the selector of a given getter function, I need to get the
selector of the equivalent setter function. For instance, from color I
should get setColor.
char* getterName = sel_getName(getterSelector);
char * setterName = ... ? ...
SEL setterSelector = sel_getUid(setterName);
What would be the less costly way, performance wise, to convert the C
string "color" to "setColor"?
I have no experience in working with strings in objc, and was hoping
someone would point me in the right direction before I start.
_______________________________________________
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