Re: Private, Protected methods in Obj C?
Re: Private, Protected methods in Obj C?
- Subject: Re: Private, Protected methods in Obj C?
- From: Jonathan Wight <email@hidden>
- Date: Wed, 03 Apr 2002 16:04:20 -0600
On 04/03/2002 15:24, "Ondra Cada" <email@hidden> wrote:
>
On Wednesday, April 3, 2002, at 11:01 , email@hidden wrote:
>
>
> Private
>
> methods can't really be achieved
>
>
Actually they can -- a static function is just a private, non-inheritable
>
method in fact ;)
>
>
You just have to use self explicitly (as an argument) to access properties.
Yeah and while we're at it who needs these object things anyway? Let's just
use functions. I propose we call this language "Non-Objective C", or just
"C" for short. Catchy name yes? ;-)
Static functions should be used inside a class only as a method of last
resort. If you use them you sacrifice all of Objective C's dynamic
loveliness. Don9t do it. If you need (mostly) private methods put them
inside their own hidden categories.
Jon.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.