In my app I need a way to generate the name of a method based on a property key. If the key is, e.g. -scaleFactor, and the generated method name needs to be -displayNameForScaleFactor, how can I reliably turn "scaleFactor" into "ScaleFactor"? I tried [NSString capitalizedString] but I get "Scalefactor". Obviously capitalizing an ASCII string is trivial but I'm not sure that I can assume that encoding for method names.

Since the KVC mechanism must be doing this a lot, I wondered if there was an API I'm overlooking.


thanks,

Graham


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to