wxWidgets/include/wx/osx
Vadim Zeitlin 6a57bd93ad Remove unnecessary duplicate code dealing with invoking window from wxOSX.
This is roughly the same as r64127 for wxGTK but for wxOSX: don't duplicate
the functionality already present in the base class in Mac-specific way. Just
use wxMenu::GetWindow() instead of painstakingly propagating invoking window
changes via the entire menu hierarchy.

Also attach the root menu used in wxOSX to the menu bar to ensure that the
correct window can be found for all its menus.

Closes #11990.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-24 20:39:44 +00:00
..
carbon missed in r64093 2010-04-22 07:00:32 +00:00
cocoa overriding the cfrunloop accessor, during booting cocoa has to create a NSRunLoop earlier 2010-04-22 06:16:34 +00:00
core having common API for mapping between native and wx tlw type 2010-04-20 14:55:42 +00:00
iphone name change to correctly reflect the autorelease nature of the methods, removing double release, fixes #11547, fixes #11760 2010-04-12 16:29:35 +00:00
private correcting error message 2010-01-03 19:58:18 +00:00
accel.h headermove osx - header files 2009-01-17 10:43:43 +00:00
app.h Create an autorelease pool to catch objects created during several special situations, like customized initialization, so that we don't leak there. 2009-11-05 00:31:36 +00:00
bitmap.h iPhone bitmap support 2009-07-10 17:33:43 +00:00
bmpbuttn.h moving bitmapbutton functionality up to button for OSX 2009-10-09 12:24:35 +00:00
brush.h correcting header path 2008-07-31 09:59:04 +00:00
button.h Invalidate best size when the bitmap or bitmap position changes. Add GetBitmapMargins 2010-03-01 23:20:35 +00:00
checkbox.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
checklst.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
chkconf.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
choice.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
clipbrd.h Include wx/dataobj.h from wx/clipbrd.h. 2009-07-20 23:54:08 +00:00
colordlg.h headermove osx - header files 2009-01-17 10:43:43 +00:00
colour.h wxColour is implemented using CoreGraphics 2008-07-31 10:23:14 +00:00
combobox.h Add wxTextEntryBase::ForwardEnableTextChangedEvents(). 2010-04-06 18:46:35 +00:00
config_xcode.h adding kqueue define for xcode builds 2010-01-04 07:52:45 +00:00
control.h set m_isBeingDeleted to true (only) in SendDestroyEvent(); call it as early as possible during the window destruction to ensure that destroy event handlers can still access the full window object 2009-01-20 18:33:33 +00:00
cursor.h make access for virtuals match base 2009-12-03 17:20:15 +00:00
dataform.h headermove osx - header files 2009-01-17 10:43:43 +00:00
dataobj2.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
dataobj.h headermove osx - header files 2009-01-17 10:43:43 +00:00
dataview.h Big wxDataViewCtrl renderer classes refactoring. 2009-11-10 17:40:58 +00:00
dc.h headermove osx - header files 2009-01-17 10:43:43 +00:00
dcclient.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
dcmemory.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
dcprint.h headermove osx - header files 2009-01-17 10:43:43 +00:00
dcscreen.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
dialog.h tracking open modal dialogs 2010-04-20 19:09:38 +00:00
dirdlg.h Get ShowWindowModal behavior working under OS X Cocoa for file, dir and message dialogs. 2010-01-28 04:06:23 +00:00
dnd.h Add an accessor to get the current drop source from window.mm so that we can implement GiveFeedback support, and also move a couple functions that check the current drop source into common DND OS X code as a result. 2010-02-06 01:45:58 +00:00
dvrenderer.h Add support for custom attributes to wxOSX/Cocoa wxDataViewCustomRenderer. 2009-11-10 17:42:24 +00:00
dvrenderers.h Add wxOSX_USE_COCOA around Cocoa-only OSXApplyAttr() method. 2009-11-11 01:36:36 +00:00
evtloop.h allowing direct native tlw modal loops 2010-04-08 09:46:36 +00:00
evtloopsrc.h Refactor wxEventLoopSource-related code. 2009-10-22 11:36:35 +00:00
filedlg.h streamlining code for extra controls 2010-04-18 13:17:16 +00:00
font.h using statically allocated font objects for speedup 2010-04-08 18:47:41 +00:00
fontdlg.h headermove osx - header files 2009-01-17 10:43:43 +00:00
frame.h make access for virtuals match base 2009-12-03 17:20:15 +00:00
gauge.h headermove osx - header files 2009-01-17 10:43:43 +00:00
glcanvas.h OpenGL changes for carbon and cocoa 2009-09-13 17:19:01 +00:00
helpxxxx.h headermove osx - header files 2009-01-17 10:43:43 +00:00
icon.h headermove osx - header files 2009-01-17 10:43:43 +00:00
imaglist.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
joystick.h headermove osx - header files 2009-01-17 10:43:43 +00:00
listbox.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
listctrl.h Applied #10858: wxListCtrl on Mac does not route Freeze/Thaw/Update to m_genericImpl 2009-09-25 07:45:35 +00:00
mdi.h headermove osx - header files 2009-01-17 10:43:43 +00:00
menu.h Remove unnecessary duplicate code dealing with invoking window from wxOSX. 2010-04-24 20:39:44 +00:00
menuitem.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
metafile.h replace TRUE/FALSE with true/false 2009-10-09 17:39:19 +00:00
mimetype.h reverting to former mimetype routing to core 2009-01-17 13:25:10 +00:00
minifram.h headermove osx - header files 2009-01-17 10:43:43 +00:00
msgdlg.h Get ShowWindowModal behavior working under OS X Cocoa for file, dir and message dialogs. 2010-01-28 04:06:23 +00:00
nonownedwnd.h adding wrapping possibility for native tlws 2010-04-13 20:24:59 +00:00
notebook.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
palette.h headermove osx - header files 2009-01-17 10:43:43 +00:00
pen.h Implement GetDashCount() for Carbon/Cocoa. 2009-02-07 23:23:18 +00:00
pnghand.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
pngread.h headermove osx - header files 2009-01-17 10:43:43 +00:00
popupwin.h A call to wxPopupWindow::Show shouldn't automatically cause the popup window to steal focus. 2010-03-06 04:51:51 +00:00
printdlg.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
printmac.h replace TRUE/FALSE with true/false 2009-10-09 17:39:19 +00:00
private.h minor cleanup 2009-12-05 19:57:58 +00:00
radiobox.h use wxRA_SPECIFY_COLS/ROWS instead of old, deprecated and confusing wxRA_HORIZONTAL/VERTICAL 2009-06-03 22:33:32 +00:00
radiobut.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
region.h common drawing code for osx-cocoa and osx-carbon, also since 10.5 HIShapeRef is in ApplicationServices, so this can be used for all osx-cocoa builds as native wxRegion implementation 2009-02-09 09:01:19 +00:00
scrolbar.h Forgot header with OSX prefix 2009-01-23 08:40:26 +00:00
setup0.h Correct check for MSVC version in wxUSE_GRAPHICS_CONTEXT definition. 2010-04-06 13:55:30 +00:00
slider.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
sound.h To support playing async sounds on the stack on Mac, do not delete the wxSoundData when its wxSound object is destroyed if it's in the queue of sounds to be played. Instead, mark it to be deleted and delete it after it has played. 2009-12-30 17:41:29 +00:00
spinbutt.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
spinctrl.h replace TRUE/FALSE with true/false 2009-10-09 17:39:19 +00:00
srchctrl.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
statbmp.h osx new layout 2008-09-02 16:53:23 +00:00
statbox.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
statline.h headermove osx - header files 2009-01-17 10:43:43 +00:00
stattext.h replace TRUE/FALSE with true/false 2009-10-09 17:39:19 +00:00
statusbr.h make access for virtuals match base 2009-12-03 17:20:15 +00:00
taskbarosx.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
textctrl.h Fix text text changed events sending in OS X combo box and text control. 2010-04-06 18:46:29 +00:00
textentry.h Remove duplicate fields in wxTextCtrl / wxTextEntry. Fixes #11618. 2010-01-10 01:52:22 +00:00
tglbtn.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
toolbar.h Remove the native toolbar from the frame in Destroy() rather than the destructor, as removing it in the destructor causes resize / repaint events to fire on the native control, which then goes to wx controls being deleted. 2009-12-25 20:43:43 +00:00
tooltip.h headermove osx - header files 2009-01-17 10:43:43 +00:00
toplevel.h wrap native TLWs so that they also appear in the tlw list 2010-04-20 14:51:54 +00:00
treectrl.h don't use annoying and unneeded in C++ casts of NULL to "T *" in all other files neither 2009-01-19 13:55:27 +00:00
uma.h Forward port event handler fixes to trunk. 2008-11-22 04:10:31 +00:00
window.h translating background style BG_PAINT into opaqueness for speed-up of OS redraws, supporting positioning for native carbon controls also on non-composited windows (custom pane in navservices dialogs) 2010-04-16 06:18:16 +00:00