Split views and "metal" textured windows
Split views and "metal" textured windows
- Subject: Split views and "metal" textured windows
- From: Tim Hewett <email@hidden>
- Date: Sun, 20 Jul 2003 09:54:19 +0100
Hello,
I have an application which is using a split view as the top-level
content view for its (textured) window. There is a problem which
I can't work out how to fix, which is that the "drag on metal" feature,
i.e. that where metal windows can be dragged using any bit of
blank metal rather than just the top bar, doesn't work.
Looking into this I have found that the NSSplitView method
mouseDownCanMoveWindow returns NO for NSSplitView, where
for NSView it returns YES. From the method description, NO can
be returned because "This allows iApp-type applications to properly
determine the region by which a window can be moved.".
How does one go about doing this? When this method gets called,
no NSPoint is given to allow an overriding definition of this method
in a subclass of NSSplitView to determine whether the window can
be moved by dragging at that point. If I override this method to force
it to return YES, dragging almost works in that the window becomes
draggable by clicking on any metal, but also becomes draggable by
clicking on buttons (though not all buttons) which is not what is
wanted. There are also sections of metal which do not allow the
window to be dragged when there is only blank metal at that point.
A lot of the area in the subviews of the NSSplitView is blank metal
and it would be intuitive to allow the window to be dragged using
it, but I can't figure out how to. 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.