Skip navigation.
 
mlRe: NSTextView text coloring problem
FROM : John Stiles
DATE : Thu Apr 24 19:17:49 2008

Is the $ usage an extension? That doesn't sound like regular C to me.


Alastair Houghton wrote:
> On 24 Apr 2008, at 16:10, Dave Jewell wrote:
>

>>> On 24 Apr 2008, at 8:42 am, Graham Cox wrote:
>>>
>>> Aside: your ivars shouldn't start with an underscore - Apple reserves
>>> such names for its own classes.

>>
>> Interesting - I was unaware of that convention.  Dietmar Planitzer
>> provides something of an alternative view here:
>>
>> http://lists.apple.com/archives/cocoa-dev/2004/Jan/msg01976.html
>>
>> It can be summarised as: if your ivars clash with Apple's, the
>> compiler will barf anyway...

>
> Or you could use $ instead of _.  $ works just fine in identifiers,
> even if it does make your program look like it's written in Perl (spit).
>
> Not that I do that myself; I tend just to name my instance variables
> without prefixes.
>
> Kind regards,
>
> Alastair.
>
> --
> http://alastairs-place.net
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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/<email_removed>
>
> This email sent to <email_removed>

Related mailsAuthorDate
mlNSTextView text coloring problem tyler durden Apr 24, 00:19
mlRe: NSTextView text coloring problem Jean-Daniel Dupas Apr 24, 00:33
mlRe: NSTextView text coloring problem Graham Cox Apr 24, 00:42
mlRe: NSTextView text coloring problem Dave Jewell Apr 24, 17:10
mlRe: NSTextView text coloring problem Alastair Houghton Apr 24, 17:29
mlRe: NSTextView text coloring problem John Stiles Apr 24, 19:17
mlRe: NSTextView text coloring problem Alastair Houghton Apr 24, 20:09