Override default handling so that we can position windows off-screen like on other ports.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Ollivier
2009-11-13 02:28:16 +00:00
parent 0ddf0ac696
commit 0bcac6c79f

View File

@@ -88,6 +88,7 @@ typedef void (*wxOSX_NoResponderHandlerPtr)(NSView* self, SEL _cmd, SEL selector
wxNonOwnedWindowCocoaImpl* impl; wxNonOwnedWindowCocoaImpl* impl;
} }
- (NSRect)constrainFrameRect:(NSRect)frameRect toScreen:(NSScreen *)screen;
- (void)setImplementation: (wxNonOwnedWindowCocoaImpl *) theImplementation; - (void)setImplementation: (wxNonOwnedWindowCocoaImpl *) theImplementation;
- (wxNonOwnedWindowCocoaImpl*) implementation; - (wxNonOwnedWindowCocoaImpl*) implementation;
- (void)noResponderFor: (SEL) selector; - (void)noResponderFor: (SEL) selector;
@@ -95,6 +96,13 @@ typedef void (*wxOSX_NoResponderHandlerPtr)(NSView* self, SEL _cmd, SEL selector
@implementation wxNSWindow @implementation wxNSWindow
// The default implementation always moves the window back onto the screen,
// even when the programmer explicitly wants to hide it.
- (NSRect)constrainFrameRect:(NSRect)frameRect toScreen:(NSScreen *)screen
{
return frameRect;
}
- (void)setImplementation: (wxNonOwnedWindowCocoaImpl *) theImplementation - (void)setImplementation: (wxNonOwnedWindowCocoaImpl *) theImplementation
{ {
impl = theImplementation; impl = theImplementation;