Controls created at runtime aren't drawn as enabled until a mouse click...

2010-09-09 Thread Steve Christensen
I have a window and controls that are loaded from a nib. One of the controls builds a subview hierarchy to control a set of parameters that aren't known until runtime. What I'm finding is that all of the controls in that hierarchy are drawn as if they're disabled until you click on them, then

Re: Controls created at runtime aren't drawn as enabled until a mouse click...

2010-09-09 Thread Kevin Wojniak
Any chance you're using an NSBorderlessWindowMask window? If so, you may need to override canBecomeKeyWindow. Kevin On Sep 9, 2010, at 11:12 AM, Steve Christensen wrote: I have a window and controls that are loaded from a nib. One of the controls builds a subview hierarchy to control a set

Re: Controls created at runtime aren't drawn as enabled until a mouse click...

2010-09-09 Thread Steve Christensen
Nope, it's a regular window with a title bar and everything. All of the controls that are instantiated from the nib are fine; only the controls created manually at runtime are showing this behavior. On Sep 9, 2010, at 11:41 AM, Kevin Wojniak wrote: Any chance you're using an