Re: Subclassing breaks bindings?
Re: Subclassing breaks bindings?
- Subject: Re: Subclassing breaks bindings?
- From: Alexander Spohr <email@hidden>
- Date: Wed, 13 May 2009 17:56:29 +0200
Don’t use a CustomView, use an NSPopUpButton.
atze
Am 13.05.2009 um 17:12 schrieb Dalzhim Dalzhim:
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
_______________________________________________
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