Re: how to make an NSWindow unmovable...
Re: how to make an NSWindow unmovable...
- Subject: Re: how to make an NSWindow unmovable...
- From: Philip George <email@hidden>
- Date: Sun, 12 Jun 2005 16:35:14 -0500
On Jun 12, 2005, at 4:09 PM, Eric Brunstad wrote:
I see now what you mean, though, as textured windows don't have title
bars.
well, they don't appear to, but they actually do, which is sort of
related to the problem:
if i set up the window with just NSTexturedBackgroundWindowMask, i get
the texture but no rounded corners.
if i use (NSTitledWindowMask|NSTexturedBackgroundWindowMask), i get the
rounded corners, but unfortunately i get a titlebar as well (it's
textured too, so you don't notice it's there).
i use setMovableByWindowBackground: to turn off the ability to move the
window around by grabbing it inside its content area, but i still have
no control over the window being moved via its titlebar, since
titlebars are the domain of the window server.
note that if i just use NSTexturedBackgroundWindowMask, and then call
[window setMovableByWindowBackground:NO], since there is no titlebar
it's 100% content area, and thus cannot be moved at all.... which is
great...
...but i need the rounded corners too. :(
i tried setting up a posed NSWindow class to intercept all
setFrameXXX.. messages, but apparently the window server doesn't call
those methods to move the window around when dragging by the titlebar.
it does it in some other way. not sure how exactly. doesn't matter
though since that's the only way i could have intercepted it.
- philip
_______________________________________________
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