Re: Are views active or inactive?
Re: Are views active or inactive?
- Subject: Re: Are views active or inactive?
- From: Rick Mann <email@hidden>
- Date: Wed, 23 Dec 2009 14:56:51 -0800
On Dec 23, 2009, at 14:53:43, Graham Cox wrote:
>
> On 24/12/2009, at 8:26 AM, Gregory Weston wrote:
>
>> With this expanded explanation, I think the correct answer is that you're going about it the wrong way. It's not a normal Mac HI behavior for a drawing canvas to draw itself differently as a side-effect of its window being inactive.
>
> Well, it depends.
>
> Drawing canvases may or may not support the idea of a selection, and so highlight selected objects in a certain way. That highlight might want to be sensitive to the active state of the window so that it can be drawn using the inactive control colour when inactive rather than a bright highlight, or turned off altogether. Bright highlighting in inactive windows is distracting and misleading.
>
> In DrawKit I do this, and the only way was to subscribe to the window's notifications for becoming/resigning main and refreshing the view.
Thanks for confirming this is the way you do it. Helps reassure me it's a workable solution. Thanks again!_______________________________________________
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