Re: inconsistencies in view renderings
Re: inconsistencies in view renderings
- Subject: Re: inconsistencies in view renderings
- From: Alan Snyder <email@hidden>
- Date: Tue, 18 Oct 2016 12:17:30 -0700
I was afraid you would say that…
The implication is that AppKit is probing the application at unspecified times with a fake event? Nothing in the documentation of acceptsFirstMouse suggests such a thing.
I have not found any other API so far.
Alan
> On Oct 18, 2016, at 9:51 AM, Quincey Morris <email@hidden> wrote:
>
> 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