discuss-gnustep
[Top][All Lists]
Advanced

[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: address@hidden
> [mailto:address@hidden Behalf Of Mondragon, Ian
> Sent: Saturday, June 08, 2002 12:21 AM
> To: address@hidden; address@hidden
> Subject: RE: NSObject className
>
>
> you can't call self from a factory method! :-)
>
> > -----Original Message-----
> > From:       Stefan Urbanek [SMTP:address@hidden
> > Sent:       Friday, June 07, 2002 8:10 AM
> > To: address@hidden
> > 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
> > address@hidden
> > http://mail.gnu.org/mailman/listinfo/discuss-gnustep
>
> _______________________________________________
> Discuss-gnustep mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/discuss-gnustep
>




reply via email to

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