• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
string convertion: converting getter name to setter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: string convertion: converting getter name to setter
      • From: Phil <email@hidden>
    • Re: string convertion: converting getter name to setter
      • From: Andrew Merenbach <email@hidden>
  • Prev by Date: Re: GDB Problems
  • Next by Date: Re: What Size My Window?
  • Previous by thread: Re: NSTableView Protocol Help!
  • Next by thread: Re: string convertion: converting getter name to setter
  • Index(es):
    • Date
    • Thread