• 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: Manual binding questions.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Manual binding questions.


  • Subject: Re: Manual binding questions.
  • From: Shawn Erickson <email@hidden>
  • Date: Sun, 23 Jan 2005 13:50:10 -0800


On Jan 23, 2005, at 1:11 PM, Jiva DeVoe wrote:

I have an NSSlider on a form in IB. I have an outlet for this in my doc header file:

IBOutlet NSSlider *_slider;
IBOutlet MyView *_myView;

FYI using "_" is a bad idea... (this may or may not be related to the problems you are having)


<http://developer.apple.com/documentation/Cocoa/Conceptual/ CodingGuidelines/index.html>

"Do not use the underscore character as a prefix meaning that the instance variable is private. Apple reserves the use of this convention because its use by third parties could result in name-space collisions. See “Private Methods” for a suggestion on prefixes for private API."

"Private Methods
With the exception of a prefix convention, private names follow the same rules as public names. The prefix convention is this: Don’t use the underscore character as a prefix meaning private. Apple reserves this convention, and its use by third parties could result in rather unpleasant name-space collisions."



-Shawn

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Manual binding questions.
      • From: Jiva DeVoe <email@hidden>
References: 
 >Manual binding questions. (From: Jiva DeVoe <email@hidden>)

  • Prev by Date: Fullscreen windowing and NSMovieView.
  • Next by Date: Re: Couple of questions about the "SEL" datatype
  • Previous by thread: Manual binding questions.
  • Next by thread: Re: Manual binding questions.
  • Index(es):
    • Date
    • Thread