bug-gnustep
[Top][All Lists]
Advanced

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

Re: objc_next_class


From: Nicola Pero
Subject: Re: objc_next_class
Date: Fri, 14 Jun 2002 16:41:57 +0100 (BST)

> [...]
> > Replacing the NSLog with
> > NSLog (@"fail on %@\n", NSStringFromClass (cl));
> [...]
> 
> What's the difference to 
> 
>   NSLog(@"%s", object_get_class_name(self));
> 
> Is there any?
> 

NSStringFromClass () is more standard and portable - it will work on any
OpenStep Foundation library, while object_get_class_name (), or
class_get_class_name () is for the GNU runtime only - the Apple runtime
should have similar ones, whose name might be I think something like
object_getClassName ().




reply via email to

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