discuss-gnustep
[Top][All Lists]
Advanced

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

RE: NSObject className


From: Mondragon, Ian
Subject: RE: NSObject className
Date: Fri, 07 Jun 2002 17:52:10 -0500

oops - sorry...i'm so brain-dead right now...thinking of a straight-C method
in a class....hahahaha.

sigh.

sorry for the misinformation.

> -----Original Message-----
> From: David Ayers [SMTP:d.ayers@inode.at]
> Sent: Friday, June 07, 2002 6:24 PM
> To:   Mondragon, Ian; urbanek@host.sk; discuss-gnustep@gnu.org
> Subject:      RE: NSObject className
> 
> 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
> >



reply via email to

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