Re: [MyClass class] returning superclass's class
Re: [MyClass class] returning superclass's class
- Subject: Re: [MyClass class] returning superclass's class
- From: Jean-Daniel Dupas <email@hidden>
- Date: Wed, 19 Nov 2008 14:39:44 +0100
Le 19 nov. 08 à 13:32, Ken Tozier a écrit :
Hi
I wrote a subclass of NSCharacterSet and at runtime, when I do
[MyClass class] it returns the superclass's class rather than the
class value. I suspect this is "normal"
What make you think this is normal ?
How do you create your instance ?
NSCharacterSet is a class cluster, and so, you should take some care
if you want to subclass it.
See Class Cluster doc for details.
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaObjects/chapter_3_section_9.html
_______________________________________________
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