[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dia2code objc
From: |
Björn Gohla |
Subject: |
Re: dia2code objc |
Date: |
Tue, 26 Mar 2002 14:47:43 +0100 |
On Tuesday 26 March 2002 13:41, Philippe C.D. Robert wrote:
> Hi!
>
> On Tue, 26 Mar 2002, [utf-8] Björn Gohla wrote:
> > i am working on a dia2code plugin for objective-c. i have some issues
> > with class member visibility. public attributes are represented in objc
> > via a set/get pair, and private ones by the absence of it. but is there
> > any useful interpretation of protected attributes, if so how? how can
> > private and protected methods be represented in objc?
>
> Cool idea, I am very interested in such work!
>
> In ObjC you can only make variables protected, private or public, but not
but how do we protect a member variable, assuming 'protected' means that the
variable is only accessible by certain objects? i was hoping there was a
simple default way to check whether a calling class is a 'friend' allowed to
access protected members, or perhaps this could be a chance to check wether
that would be useful a concept to have in gnustep.
> methods. Usually you would just put them into a 'separate' category.
putting the private methods into a separate category does not make the
compiler enforce privacy, correct?
> And to be a little picky, 'get' in ObjC is not the same as ie. in Java or
> C++. In ObjC it is used to return a value by passing a pointer, ie:
i am aware of that.
> - (void)getIntValue:(int*)value;
>
> whereas the 'real' accessor would look like
>
> - (int)intValue;
that is actually how i implemented it, i only called it 'get' in the message.
- dia2code objc, Björn Gohla, 2002/03/26
- Re: dia2code objc, Helge Hess, 2002/03/26
- Re: dia2code objc, Björn Gohla, 2002/03/26
- Re: dia2code objc, Richard Frith-Macdonald, 2002/03/26
- Re: dia2code objc, Björn Gohla, 2002/03/26
- Re: dia2code objc, Frederic Stark, 2002/03/26
- Re: dia2code objc, Björn Gohla, 2002/03/26
- Re: dia2code objc, Frederic Stark, 2002/03/27
Re: dia2code objc, Philippe C.D. Robert, 2002/03/26
- Re: dia2code objc,
Björn Gohla <=
Re: dia2code objc, Nicola Pero, 2002/03/26
Re: dia2code objc, Bjoern Giesler, 2002/03/26
Re: dia2code objc, Björn Gohla, 2002/03/26