• 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: NSTextView text coloring problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView text coloring problem


  • Subject: Re: NSTextView text coloring problem
  • From: Alastair Houghton <email@hidden>
  • Date: Thu, 24 Apr 2008 16:29:37 +0100

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@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: NSTextView text coloring problem
      • From: John Stiles <email@hidden>
References: 
 >Re: NSTextView text coloring problem (From: Dave Jewell <email@hidden>)

  • Prev by Date: Re: Resource Fork - is this a good use/the right thing to do?
  • Next by Date: Re: Resource Fork - is this a good use/the right thing to do?
  • Previous by thread: Re: NSTextView text coloring problem
  • Next by thread: Re: NSTextView text coloring problem
  • Index(es):
    • Date
    • Thread