Re: Abstract class with single subclass
Re: Abstract class with single subclass
- Subject: Re: Abstract class with single subclass
- From: Seth Willits <email@hidden>
- Date: Wed, 27 May 2009 13:44:55 -0700
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 (email@hidden)
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:
This email sent to email@hidden