On May 27, 2009, at 7:51 AM, Michael Ash wrote:

       if ([[self class] isEqualTo:[BaseClass class]])

Oops, I forgot to mention one other thing. This works but is
excessively wordy and strange. In a class method, [self class] is
equivalent to self.

Actually, I accidently used [self class] in a class method two weeks ago, and it was causing a crash. I forget the circumstances, but when I caught that I was using [self class] and changed it to self, everything worked fine. So I don't know what the difference is, but there apparently is a difference.


--
Seth Willits



_______________________________________________

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 arch...@mail-archive.com

Reply via email to