• 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: Best technology to use for overlays?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best technology to use for overlays?


  • Subject: Re: Best technology to use for overlays?
  • From: Michael Ash <email@hidden>
  • Date: Fri, 24 Apr 2009 07:07:58 -0400

On Fri, Apr 24, 2009 at 5:02 AM, Daniel Vollmer <email@hidden> wrote:
> Hi,
>
> I want to optimise my drawing code a bit. Essentially, I have a custom
> NSView embedded in an NSCollectionView embedded in an NSScrollView. In my
> custom view, I always want to display an overlay (consisting of something
> like a description string of what is being displayed). This overlay is of
> course expected to be always visible no matter where I scroll, which usually
> leads me to redrawing the whole view when scrolling.
> What's the usual approach to this? Move the "header" drawing code to a
> subclass of NSScrollView? Conceptually, I think I want something that uses
> the same back-end as the window compositing, as that that's closest to what
> I want (the heading stays where it is, drawn on top of the NSScrollView,
> while the custom view only has to draw the given subRect that's being
> scrolled into the visible portion).

If you want to use the same back-end as window compositing, why not
use actual window compositing? Create a borderless NSWindow, make it a
child window, and position it appropriately.

Mike
_______________________________________________

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: Best technology to use for overlays?
      • From: Chris Suter <email@hidden>
References: 
 >Best technology to use for overlays? (From: Daniel Vollmer <email@hidden>)

  • Prev by Date: Re: Best technology to use for overlays?
  • Next by Date: Re: Best technology to use for overlays?
  • Previous by thread: Re: Best technology to use for overlays?
  • Next by thread: Re: Best technology to use for overlays?
  • Index(es):
    • Date
    • Thread