• 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: Creating a large Cocoa project - tutorials? - OT: underscore use
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a large Cocoa project - tutorials? - OT: underscore use


  • Subject: Re: Creating a large Cocoa project - tutorials? - OT: underscore use
  • From: Justin Spahr-Summers <email@hidden>
  • Date: Sun, 20 Mar 2005 17:56:24 -0600

In your class' .m file, you can add something like

@interface MyClass (InternalMethods)
- (void)doSomething;
@end

and implement that in the code below.

On Sun, 20 Mar 2005 21:51:46 +0100, Wolfgang Maehr <email@hidden> wrote:
> Hi Uli, a bit off topic
>
> On Mar 20, 2005, at 21:29, M. Uli Kusterer wrote:
> > It [precede instance variables with an underscore] used to be in the
> > old NeXT days, but Apple have declared that the underscore is from now
> > on reserved for their personal use. So, no, it isn't anymore.
>
> But there I would like to know what to do with instant methods that are
> just for internal use? I should be declaring them in the header file,
> so that I do not get any Compiler warings and so that I can use code
> completion and so on. But I would somehow like to mark them (as the
> header is the declaration also for the outside) as interanlly used.
> Python solves this elegantly with a preceding underscore, which I
> obviously should not be using here. So what's the best way to do this?
>
> Thanks for any advice,
> _Wolf
 _______________________________________________
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

References: 
 >Re: Creating a large Cocoa project - tutorials? (From: Keith Blount <email@hidden>)
 >Re: Creating a large Cocoa project - tutorials? - OT: underscore use (From: Wolfgang Maehr <email@hidden>)

  • Prev by Date: Image Resolution problem in NSBitmapImageRep
  • Next by Date: dyld: Too many open files, errno = 24
  • Previous by thread: Re: Creating a large Cocoa project - tutorials? - OT: underscore use
  • Next by thread: Re: Creating a large Cocoa project - tutorials? - OT: underscore use
  • Index(es):
    • Date
    • Thread