Importing the skeleton of system tray implementation and making sure it compiles and works
There was an interesting "problem" due to automatic reference counting
(-fobjc-arc flag). XCode includes this flag by default, so making sure
that wscript is doing the same thing.
diff --git a/osx/menu-delegate.mm b/osx/menu-delegate.mm
new file mode 100644
index 0000000..8418f6f
--- /dev/null
+++ b/osx/menu-delegate.mm
@@ -0,0 +1,32 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil -*- */
+/*
+ * @copyright See LICENCE for copyright and license information.
+ *
+ * @author Alexander Afanasyev <alexander.afanasyev@ucla.edu>
+ * @author Ilya Moiseenko <iliamo@ucla.edu>
+ */
+
+#import "menu-delegate.h"
+
+@implementation MenuDelegate
+
+- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
+{
+ // Insert code here to initialize your application
+}
+
+// -(void)dealloc
+// {
+// [statusItem release];
+// [super dealloc];
+// }
+
+-(void)awakeFromNib
+{
+ statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength];
+ [statusItem setTitle:@"X"];
+ [statusItem setMenu:statusMenu];
+ [statusItem setHighlightMode:YES];
+}
+
+@end