Re: inconsistencies in view renderings
Re: inconsistencies in view renderings
- Subject: Re: inconsistencies in view renderings
- From: Quincey Morris <email@hidden>
- Date: Tue, 18 Oct 2016 09:51:49 -0700
- Feedback-id: 167118m:167118agrif8a:167118s6cPytxj6s:SMTPCORP
On Oct 18, 2016, at 08:00 , Alan Snyder <email@hidden> wrote:
>
> Is the choice to gray or not to gray when inactive under programmer control?
IIRC you can control this by the the value of “acceptsFirstMouse”. The NSView default is NO, but NSButton overrides it to return YES. To change it back again, you need to subclass NSButton and override the method. (But it’s a while since I’ve had to deal with this, and there may be other API for directly controlling the appearance.)
_______________________________________________
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