[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: NSObject className
From: |
David Ayers |
Subject: |
RE: NSObject className |
Date: |
Sat, 8 Jun 2002 01:23:30 +0200 |
Actually, yes you can :-) but since NSObject is the root class it is
actually superflous since all instance methods of the root class are also
accesable by the class. (This is due to the fact that Class-Objects are more
or less instances of NSObject.)
> -----Original Message-----
> From: discuss-gnustep-admin@gnu.org
> [mailto:discuss-gnustep-admin@gnu.org]On Behalf Of Mondragon, Ian
> Sent: Saturday, June 08, 2002 12:21 AM
> To: urbanek@host.sk; discuss-gnustep@gnu.org
> Subject: RE: NSObject className
>
>
> you can't call self from a factory method! :-)
>
> > -----Original Message-----
> > From: Stefan Urbanek [SMTP:urbanek@host.sk]
> > Sent: Friday, June 07, 2002 8:10 AM
> > To: discuss-gnustep@gnu.org
> > Subject: NSObject className
> >
> > This method is missing in NSObject:
> >
> > - (NSString *) className
> > {
> > return NSStringFromClass([self class]);
> > }
> >
> > I am not sure, if this is correct, but i think this also should
> be there:
> >
> > + (NSString *) className
> > {
> > return NSStringFromClass([self class]);
> > }
> >
> > Stefan
> >
> >
> > _______________________________________________
> > Discuss-gnustep mailing list
> > Discuss-gnustep@gnu.org
> > http://mail.gnu.org/mailman/listinfo/discuss-gnustep
>
> _______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> http://mail.gnu.org/mailman/listinfo/discuss-gnustep
>