On Nov 19, 2008, at 7:32 AM, Ken Tozier wrote:
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" but was wondering if there
is a way to get my subclass's class rather than it's superclass.
Works for me:
@interface MyClass : NSCharacterSet
@end
@implementation MyClass
@end
...
NSLog(@"[MyClass class] returns [EMAIL PROTECTED]", [MyClass class]);
2008-11-19 08:44:27.891 Scratch2[24671:10b] [MyClass class] returns
[MyClass]
Can you post some code?
--Andy
_______________________________________________
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]