On Wed, Feb 27, 2008 at 7:17 AM, Mike Abdullah
<[EMAIL PROTECTED]> wrote:
> Right, clearly you should use that for testing a class. But, what if
>  you want to record the classname so you can instantiate another one or
>  similar later?

The comment wasn't really directed at you, it was kind of an
augmentation of your point.  Object comparisons are more common than
logging operations; one might assume upon seeing NSStringFromClass()
that they could perform a string comparison to determine if an object
is of their desired class, and this doesn't work for subclasses and
will lead to head-scratching if the object is being KVO observed and
has thus been isa-swizzled.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to