summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--DOCS/client_api_examples/cocoabasic.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/DOCS/client_api_examples/cocoabasic.m b/DOCS/client_api_examples/cocoabasic.m
index 6095a084d6..383d778f3e 100644
--- a/DOCS/client_api_examples/cocoabasic.m
+++ b/DOCS/client_api_examples/cocoabasic.m
@@ -116,7 +116,7 @@ static void wakeup(void *context) {
// Delete this if you already have a main.m.
int main(int argc, const char * argv[]) {
@autoreleasepool {
- NSApplication *app = [NSApplication new];
+ NSApplication *app = [NSApplication sharedApplication];
AppDelegate *delegate = [AppDelegate new];
app.delegate = delegate;
[app run];