Use wxObjcAutoRefFromAlloc for sm_cocoaTarget.
authorDavid Elliott <dfe@tgwbd.org>
Fri, 15 Oct 2004 01:39:35 +0000 (01:39 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Fri, 15 Oct 2004 01:39:35 +0000 (01:39 +0000)
commitd04995b3a6d56d610d0eb7af9c07ba91eaf4884d
treedcdd9c9c6fb659a4afde31aa9fea03be32df5c79
parent28d1454afff5ae41bb10cd511f308849b4390abf
Use wxObjcAutoRefFromAlloc for sm_cocoaTarget.
Move some processing code from wxMenuItemAction to CocoaItemSelected.
Add Cocoa_validateMenuItem and use it instead of calling IsEnabled directly.
Do not set the target or action for wxMenuItem that open submenus.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/cocoa/menuitem.h
src/cocoa/menuitem.mm