• 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: Drawing over a view's subviews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing over a view's subviews


  • Subject: Re: Drawing over a view's subviews
  • From: John Stiles <email@hidden>
  • Date: Wed, 15 Jun 2005 13:44:07 -0700

On Jun 15, 2005, at 12:48 PM, Scott Thompson wrote:

On Jun 15, 2005, at 11:36 AM, Mark Morrill wrote:

On 15-Jun-05, at 10:12, glenn andreas wrote:

You could also try overriding unlockFocus and do your drawing before calling [super unlockFocus], which is easier to implement, but doesn't allow the flexibility that a child window would...

This method looks good.

The overlay window is an interesting option as is the non-opaque overlay view. But I think those options might have too much overhead. (sorry, couldn't resist.)

Thanks all :)

BTW, this same issue comes up every couple of months or so on this list. While you're at it, you might report a bug to apple (bugreport.apple.com) asking that an "official" way to do this be added to the API.

Out of curiosity, why would the overlay window approach have too much overhead?
It ought to be composited on the GPU so it's not going to waste a lot of CPU cycles (well, technically, when it's first created the CPU needs to allocate a back buffer etc).


_______________________________________________
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


  • Follow-Ups:
    • Re: Drawing over a view's subviews
      • From: Mark Morrill <email@hidden>
    • Re: Drawing over a view's subviews
      • From: Gerard Iglesias <email@hidden>
References: 
 >Drawing over a view's subviews (From: Mark Morrill <email@hidden>)
 >Re: Drawing over a view's subviews (From: glenn andreas <email@hidden>)
 >Re: Drawing over a view's subviews (From: Mark Morrill <email@hidden>)
 >Re: Drawing over a view's subviews (From: Scott Thompson <email@hidden>)

  • Prev by Date: Call a void on a controller from main.m
  • Next by Date: Re: Core Data, Bindings, and Binary Data
  • Previous by thread: Re: Drawing over a view's subviews
  • Next by thread: Re: Drawing over a view's subviews
  • Index(es):
    • Date
    • Thread