discuss-gnustep
[Top][All Lists]
Advanced

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

RE: dia2code objc


From: Mondragon, Ian
Subject: RE: dia2code objc
Date: Tue, 26 Mar 2002 10:01:43 -0600

you can check the object's inheritance with NSObject's -isKindOfClass:
method, which will check if an object is either an instance of a class, or a
decendant of it.  you could do somthing as simple as loop over a list of
classes that are permissable.

- ian

> -----Original Message-----
> From: Björn Gohla [SMTP:b.gohla@gmx.de]
> Sent: Tuesday, March 26, 2002 7:48 AM
> To:   discuss-gnustep@gnu.org
> Subject:      Re: dia2code objc
> 
> 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.
> 



reply via email to

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