Subclassing breaks bindings?
Subclassing breaks bindings?
- Subject: Subclassing breaks bindings?
- From: Dalzhim Dalzhim <email@hidden>
- Date: Wed, 13 May 2009 11:12:47 -0400
Hi,
I have stumbled over this problem and I can't figure it out. When I subclass
NSPopUpButton in order to make a custom appearance for the control, I cannot
seem to get the bindings working. I have stripped my problem from any
additionnal complexity until I was left with this:
@interface MySubclass : NSPopUpButton {
}
@end
@implementation MySubclass
@end
Whenever I add a CustomView to my nib file and set it's class to MySubclass,
I cannot seem to make any bindings on the properties exposed by
NSPopUpButton.
If I try to add a NSPopUpButton to my nib instead of a custom view, and set
it's class to MySubclass, then the bindings work fine, but my override on +
(Class) cellClass doesn't seem to work.
Can anyone help me figure out what I might be doing wrong?
Thanks
-Dalzhim
_______________________________________________
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