how to setMovableByWindowBackground?
how to setMovableByWindowBackground?
- Subject: how to setMovableByWindowBackground?
- From: email@hidden
- Date: Sun, 11 Jan 2004 00:34:05 +0100
Hi All,
I want to have an very small window with no title bar so I do:
smallwin = [[NSWindow alloc] initWithContentRect:NSMakeRect(0.0,
0.0, 40, 20) styleMask:NSTexturedBackgroundWindowMask
backing:NSBackingStoreBuffered defer:YES];
this works as expected: you can move the window by clicking and
dragging anywhere in the window background.
Now I want to draw an image and set an NSImageView as content view:
[smallwin setContentView:someImageView];
One can not move the window with click&drag to the background anymore.
I tried to fiddle around with the responder chain but was not
successful.
Do you have any hints/suggestions?
TIA,
--Jan--
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.