• 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: Java NSViews Using Clear Colors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java NSViews Using Clear Colors


  • Subject: Re: Java NSViews Using Clear Colors
  • From: Ricky Sharp <email@hidden>
  • Date: Mon, 07 Feb 2005 08:12:02 -0600

On Monday, February 07, 2005, at 06:10AM, Jack <email@hidden> wrote:

>I have tried so many different approaches I have none left up my sleeve.
>
>The idea is that I want to track mouse views by drawing a vertical and
>horizontal line whenever they cross.  To do this I use a NSView
>subclass called MouseTrackView.
>
>The problem is that the view does not get painted fresh, partly because
>I have filled the rect in drawRect()  with a clearColor.  Filling it
>with any other color achieves the objective, but it has to be
>transparent so that the views below it are visible.

This sounds like you have overapping views.  A better approach may be to use a transparent overlay window that synchronizes itself with the underlying view (i.e if the view moves, so does your overlay window).

--
Rick Sharp
Instant Interactive(tm)

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Java NSViews Using Clear Colors (From: Jack <email@hidden>)

  • Prev by Date: validateMenuItem: and the Responder Chain
  • Next by Date: cocoa/DVDPlayback example code?
  • Previous by thread: Java NSViews Using Clear Colors
  • Next by thread: validateMenuItem: and the Responder Chain
  • Index(es):
    • Date
    • Thread