}
}
+// We need this for borderless windows, i.e. shaped windows or windows without
+// a title bar. For more info, see:
+// http://lists.apple.com/archives/cocoa-dev/2008/May/msg02091.html
+- (BOOL)canBecomeKeyWindow
+{
+ return YES;
+}
+
@end
@interface wxNSPanel : NSPanel
void wxNonOwnedWindowCocoaImpl::ShowWithoutActivating()
{
- [m_macWindow orderBack:nil];
+ [m_macWindow orderFront:nil];
[[m_macWindow contentView] setNeedsDisplay: YES];
}
return [m_macWindow isKeyWindow];
}
+void wxNonOwnedWindowCocoaImpl::SetModified(bool modified)
+{
+ [m_macWindow setDocumentEdited:modified];
+}
+
+bool wxNonOwnedWindowCocoaImpl::GetModified() const
+{
+ return [m_macWindow isDocumentEdited];
+}
+
wxNonOwnedWindowImpl* wxNonOwnedWindowImpl::CreateNonOwnedWindow( wxNonOwnedWindow* wxpeer, wxWindow* parent, const wxPoint& pos, const wxSize& size,
long style, long extraStyle, const wxString& name )
{