• 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: Hiding the Window Content View
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hiding the Window Content View


  • Subject: Re: Hiding the Window Content View
  • From: David Blanton <email@hidden>
  • Date: Fri, 8 Jan 2010 13:46:10 -0700

I am just trying to find the best way to do rapid drawing with no flicker. I don't see an override on background drawing so I was wanting to eliminate the backgroud of the content view.

On Jan 8, 2010, at 1:30 PM, Kyle Sluder wrote:

On Fri, Jan 8, 2010 at 12:01 PM, David Blanton <email@hidden> wrote:
When the content view of a window has setHidden:YES called on it the result
is a Title Bar, Size Control and a "body" (for lack of a better term). Is
it possible to get rid of this "body" leaving just the Title Bar and Size
Control. The effect would be that when dragging the Title Bar the Size
Control moves with the drag and we see the desktop in the "body" area.

Sounds like you're trying to make a window that would be used as a "select a portion of the desktop" device.

You will need to create a borderless window and do everything (resize,
titlebar, etc.) yourself. The actual window shape and opacity is
controlled by private API. In this case it's probably for the best, as
I'm having trouble understanding what you could be trying to implement
that would make sense to do with a window.

(Of course, if you're dead-set on using a window, you could always get
an image of the desktop and draw that into a custom content view, but
that will be a bit slow.)

--Kyle Sluder



_______________________________________________

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: Hiding the Window Content View
      • From: Alastair Houghton <email@hidden>
    • Re: Hiding the Window Content View
      • From: "Paul Sanders" <email@hidden>
References: 
 >Hiding the Window Content View (From: David Blanton <email@hidden>)
 >Re: Hiding the Window Content View (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Flicker Free Drawing
  • Next by Date: Re: Flicker Free Drawing
  • Previous by thread: Re: Hiding the Window Content View
  • Next by thread: Re: Hiding the Window Content View
  • Index(es):
    • Date
    • Thread