Problem with "isMovableByWindowBackground" for "Metal" windows
Problem with "isMovableByWindowBackground" for "Metal" windows
- Subject: Problem with "isMovableByWindowBackground" for "Metal" windows
- From: Tim Hewett <email@hidden>
- Date: Sat, 5 Jul 2003 09:54:34 +0100
Hello,
I have a textured "metal" main window which cannot be moved
by clicking on the metal background - by default this should be
possible with metal windows but even if I send the message:
[mainWindow - setMovableByWindowBackground:YES];
it still can't be moved by the background, only the top bar.
The window contains my own view, an NSSplitView, which is
set as the window's content view in awakeFromNib (I tried
setting up a split view in IB but couldn't get it the way I wanted
it so did it programmatically instead). If I comment out sending
the message:
[mainWindow setContentView:mySplitView];
in awakeFromNib, the window becomes moveable by clicking
anywhere on it. So it seems to be to do with the NSSplitView.
I can't see any message I can send to this view to tell it to let
the parent window be moveable by clicking on metal but it
seems as if the split view, which fills the frame of the parent
windows, is overlaying the window background so that the
window can't tell when metal is being clicked on.
I have tried overloading the NSSplitView mouseDownCanMoveWindow
method so that it returns YES, by default it returns NO, however
this then means that the window is moveable even if a button
in a subview is clicked on.
Anyone know the solution at all? Any help would be much
appreciated!
Regards,
Tim.
_______________________________________________
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.