Re: Creating a large Cocoa project - tutorials? - OT: underscore use
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