Re: Controls created at runtime aren't drawn as enabled until a mouse click...
Re: Controls created at runtime aren't drawn as enabled until a mouse click...
- Subject: Re: Controls created at runtime aren't drawn as enabled until a mouse click...
- From: Kevin Wojniak <email@hidden>
- Date: Thu, 9 Sep 2010 11:41:26 -0700
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 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 they're redrawn with the blue highlights. As far as I can tell, all the controls are completely enabled and work just fine, except for that odd look.
>
> I've attached a small screenshot showing the difference between a slider that has been clicked and one that hasn't. Any ideas what I might be doing wrong?
>
> <sliders.png>_______________________________________________
>
> 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