• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Are views active or inactive?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Are views active or inactive?


  • Subject: Re: Are views active or inactive?
  • From: Graham Cox <email@hidden>
  • Date: Thu, 24 Dec 2009 09:53:43 +1100

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.

--Graham


_______________________________________________

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

  • Follow-Ups:
    • Re: Are views active or inactive?
      • From: Rick Mann <email@hidden>
References: 
 >Re: Are views active or inactive? (From: Gregory Weston <email@hidden>)
 >Re: Are views active or inactive? (From: Rick Mann <email@hidden>)
 >Re: Are views active or inactive? (From: Gregory Weston <email@hidden>)

  • Prev by Date: Re: [textView:shouldChangeTextInRanges:replacementStrings:] When does this type of event occur?
  • Next by Date: Re: Window Controllers
  • Previous by thread: Re: Are views active or inactive?
  • Next by thread: Re: Are views active or inactive?
  • Index(es):
    • Date
    • Thread