[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dia2code objc
From: |
Philippe C.D. Robert |
Subject: |
Re: dia2code objc |
Date: |
Tue, 26 Mar 2002 13:41:58 +0100 |
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
methods. Usually you would just put them into a 'separate' category.
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:
- (void)getIntValue:(int*)value;
whereas the 'real' accessor would look like
- (int)intValue;
HTH,
-Phil
--
Philippe C.D. Robert | VNET# 559-1565
Core Rendering | Office: +41 (0)32 732 15 65
Silicon Graphics, Inc. | Home: +41 (0)31 302 45 22
- 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 <=
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