discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dia2code objc


From: Helge Hess
Subject: Re: dia2code objc
Date: Tue, 26 Mar 2002 13:36:06 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020310

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?

Actually private/protected/public attributes should probably be mapped to instance variables ? ivars do support those flags:

@interface MyClass
{
@private
  id myPrivate;
@protected
  id myProtected;
@public
  id myPublic;
}
@end

> how can private and
protected methods be represented in objc?

There is no protection for methods in ObjC. Common convention is, that private and protected methods have an "_" underscore prefix. "Protected" might be mapped to a "MyClass+Protected.h" headerfile which contains an informal protocol for the protected _ methods.

Greetings
  Helge
--
SKYRIX Software AG    - http://www.skyrix.com
Portal Technology for Distributed Enterprises
German XML-RPC Site   - http://www.xml-rpc.de




reply via email to

[Prev in Thread] Current Thread [Next in Thread]