Re: NSControl Subclass and First Responder

2011-05-10 Thread Wood, Tobias C
For posterity, if anyone needs the answer to this, I discovered that I need to also over-ride needsPanelToBecomeKey to return YES so that a mouse-click can give focus to the control. I found this in the ClockControl example, I'd not seen that method before. Toby On 5 May 2011, at 23:40, Wood, T

NSControl Subclass and First Responder

2011-05-05 Thread Wood, Tobias C
Hello, I am trying to create a simple NSControl sub-class that will respond to mouse clicks and key presses, however I cannot get it to take First Responder status despite having over-ridden acceptsFirstResponder to return YES. If I place breakpoints in acceptsFirstResponder and becomeFirstRespo