]> git.saurik.com Git - wxWidgets.git/blame - src/cocoa/NSMenu.mm
removed OnIdle() which didn't compile any longer
[wxWidgets.git] / src / cocoa / NSMenu.mm
CommitLineData
fb896a32
DE
1/////////////////////////////////////////////////////////////////////////////
2// Name: cocoa/NSMenu.mm
3// Purpose: wxCocoaNSMenu implementation
4// Author: David Elliott
5// Modified by:
6// Created: 2002/12/09
7// RCS-ID: $Id:
8// Copyright: (c) 2002 David Elliott
9// Licence: wxWindows license
10/////////////////////////////////////////////////////////////////////////////
11
12// ============================================================================
13// declarations
14// ============================================================================
15
16// ----------------------------------------------------------------------------
17// headers
18// ----------------------------------------------------------------------------
19
20#include "wx/wxprec.h"
21#ifndef WX_PRECOMP
22 #include "wx/log.h"
23#endif // WX_PRECOMP
24
25#include "wx/cocoa/NSMenu.h"
26#include "wx/cocoa/ObjcPose.h"
27
28#import <Foundation/NSString.h>
29#import <AppKit/NSMenu.h>
30
31#if wxUSE_MENUS
32
33// ----------------------------------------------------------------------------
34// globals
35// ----------------------------------------------------------------------------
36
37// ============================================================================
38// @class wxPoserNSMenu
39// ============================================================================
40@interface wxPoserNSMenu : NSMenu
41{
42}
43
44@end // wxPoserNSMenu
45
46WX_IMPLEMENT_POSER(wxPoserNSMenu);
47@implementation wxPoserNSMenu : NSMenu
48
49@end // wxPoserNSMenu
50
51// ============================================================================
52// wxCocoaNSMenu implementation
53// ============================================================================
54bool wxCocoaNSMenu::CocoaCreate(const wxString &title)
55{
56 wxLogDebug("CocoaCreate: "+title);
57 m_cocoaNSMenu = [[NSMenu alloc] initWithTitle: [NSString stringWithCString: title.c_str()]];
58 return true;
59}
60
61wxCocoaNSMenu::~wxCocoaNSMenu()
62{
63 [m_cocoaNSMenu release];
64}
65
66#endif // wxUSE_MENUS