Problem with -setMovableByWindowBackgound: method.
Problem with -setMovableByWindowBackgound: method.
- Subject: Problem with -setMovableByWindowBackgound: method.
- From: "Jordan Evans" <email@hidden>
- Date: Mon, 14 Aug 2006 09:06:50 -0700
I've set up a transparent window for custom purposes. I want it to be
able to turn on and off the ability for it to be drug by it's
background. When I comment out this code:
[window setMovableByWindowBackgound:NO];
it is dragable. But, when I take out the comments, the window is
still dragable by it's background.
How do I do create the ability to turn off it being movable and
non-movable during the custom window's existence?
- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned
int)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag
{
NSWindow* window = [super initWithContentRect:contentRect
styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered
defer:NO];
[window setBackgroundColor: [NSColor clearColor]];
[window setAlphaValue:1.0];
[window setOpaque:NO];
[window setMovableByWindowBackgound:NO];
return window;
}
_______________________________________________
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