• 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: @property problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: @property problem


  • Subject: Re: @property problem
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 12 Feb 2008 10:58:10 -0500
  • Organization: Rogue Research

On 2/11/08 2:11 PM, Jens Alfke said:

>PS: To forstall an FAQ: Yes, it is kosher to use "_" as your ivar
>prefix, even though the Foundation and AppKit classes do the same.
>Name collisions are not a problem.

Could you elaborate?  If I subclass NSView and add an ivar named
"_sisterView" then in some future SDK NSView.h also gets a _sisterView
ivar, wouldn't there be a compiler error?  If only Apple uses the
underscore prefix and I don't, then there will be no conflicts.

Pity private ivars have to be in public headers...

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada

_______________________________________________

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: @property problem
      • From: Jens Alfke <email@hidden>
    • Re: @property problem
      • From: j o a r <email@hidden>
References: 
 >@property problem (From: Randall Meadows <email@hidden>)
 >Re: @property problem (From: "Kyle Sluder" <email@hidden>)
 >Re: @property problem (From: Brian Christensen <email@hidden>)
 >Re: @property problem (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: NSOperations leaking ports
  • Next by Date: Problems with keyboard shortcuts without modifiers
  • Previous by thread: Re: @property problem
  • Next by thread: Re: @property problem
  • Index(es):
    • Date
    • Thread