]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/cocoa/NSControl.mm
removed src/gtk/eggtrayicon.h
[wxWidgets.git] / src / cocoa / NSControl.mm
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: cocoa/NSControl.cpp
3// Purpose: wxCocoaNSControl
4// Author: David Elliott
5// Modified by:
6// Created: 2003/02/15
7// RCS-ID: $Id:
8// Copyright: (c) 2003 David Elliott
9// Licence: wxWidgets licence
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/NSControl.h"
26
27#import <Foundation/NSObject.h>
28
29// ============================================================================
30// @class wxNSControlTarget
31// ============================================================================
32@interface wxNSControlTarget : NSObject
33{
34}
35
36- (void)wxNSControlAction: (id)sender;
37@end //interface wxNSControlTarget
38
39@implementation wxNSControlTarget : NSObject
40
41- (void)wxNSControlAction: (id)sender
42{
43 wxLogTrace(wxTRACE_COCOA,wxT("wxNSControlAction"));
44 wxCocoaNSControl *wxcontrol = wxCocoaNSControl::GetFromCocoa(sender);
45 wxCHECK_RET(wxcontrol,wxT("wxNSControlAction received but no wxCocoaNSControl exists!"));
46 wxcontrol->CocoaTarget_action();
47}
48
49@end //implementation wxNSControlTarget
50
51// ============================================================================
52// wxNSControl
53// ============================================================================
54WX_IMPLEMENT_OBJC_INTERFACE(NSControl)
55
56struct objc_object *wxCocoaNSControl::sm_cocoaTarget = [[wxNSControlTarget alloc] init];
57