• 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
Re: Preserving camelCase when prefixing a method name?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preserving camelCase when prefixing a method name?


  • Subject: Re: Preserving camelCase when prefixing a method name?
  • From: "I. Savant" <email@hidden>
  • Date: Tue, 13 Oct 2009 10:44:56 -0400

On Oct 13, 2009, at 10:24 AM, Graham Cox wrote:

I think just making the first character uppercase would be sufficient, but I'm not sure how to do that reliably with the unichar data type, so that's my first question.

Why not replace the first character with an upper-case version instead of applying this to the whole string?



The second is that when generating selectors programmatically like this, are there other pitfalls to consider so that the resulting selector is always predictable? The scheme needs to work with arbitrary properties, just as various parts of KVC and KVO do.

Not sure I can answer this knowledgeably so I'll leave this one alone. :-)


--
I.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


References: 
 >Preserving camelCase when prefixing a method name? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Screensaver won't run on 10.6 even after porting to 64-bit
  • Next by Date: Re: Preserving camelCase when prefixing a method name?
  • Previous by thread: Preserving camelCase when prefixing a method name?
  • Next by thread: Re: Preserving camelCase when prefixing a method name?
  • Index(es):
    • Date
    • Thread