Thank your for the suggestion, but I am in drawRect: for a custom button.
I guess an NSButton inside another NSButton isn’t such a good idea.
/Lars



> Date: Fri, 12 Oct 2018 17:31:50 -0700
> From: James Walker <[email protected]>
> To: [email protected]
> Subject: Re: HICreateTransformedCGImage - Cocoa equivalent?
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> On 10/9/18 3:25 PM, Lars C. Hassing wrote:
>> kHITransformDisabled and kHITransformSelected are nice,
>> but how do I draw an NSImage disabled/selected(pressed) ?
>> 
>> drawInRect has a fraction parameter, but I haven’t found any mention of a 
>> recommended alpha level
>> /Lars
> 
> You could put the image in an unbordered square button.  Then disable by 
> myButton.enabled = NO, or show a pressed state with [myButton highlight: 
> YES].
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/carbon-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to