| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
@interface DummyViewA : NSView {--
}
@end
@interface DummyViewB : NSViewA {
}
@end
@implementation DummyViewA // same for DummyViewB
-(void)awakeFromNib
{
if ([[self superclass]
instancesRespondToSelector:@selector(awakeFromNib)])
[super awakeFromNib];
}
@end
When [DummyViewB awakeFromNib] is performed during program execution,
it works fine and calls [DummyViewA awakeFromNib]. Now, [self
superclass] in DummyViewA returns DummyViewA (!) and [super
awakeFromNib] throws the exception "*** -[DummyViewB awakeFromNib]:
selector not recognized".
| References: | |
| >superclass and awakeFromNib (From: Simon Bovet <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.