Re: Hiding the Window Content View
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