• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Subclassing breaks bindings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Subclassing breaks bindings?
      • From: Alexander Spohr <email@hidden>
References: 
 >Subclassing breaks bindings? (From: Dalzhim Dalzhim <email@hidden>)

  • Prev by Date: Re: NSToolbarItem with custom view in Interface Builder 3 (Leopard)
  • Next by Date: Re: How to limit the file type when dragging?
  • Previous by thread: Subclassing breaks bindings?
  • Next by thread: Re: Subclassing breaks bindings?
  • Index(es):
    • Date
    • Thread