[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.
>
RE: dia2code objc,
Mondragon, Ian <=
RE: dia2code objc, Mondragon, Ian, 2002/03/26
RE: dia2code objc, Mondragon, Ian, 2002/03/26
RE: dia2code objc, Mondragon, Ian, 2002/03/26