From cbaa8d65fc17994f542f16eb2479ac4cd4621262 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 21 May 2015 22:45:56 +0200 Subject: DOCS/client_api_examples: cocoa: minor fixes Cocoa needs to be linked explicitly. EXIT_SUCCESS is pretty pointless, and the same file uses exit(1) in other places. --- DOCS/client_api_examples/cocoa/cocoabasic.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DOCS/client_api_examples/cocoa/cocoabasic.m b/DOCS/client_api_examples/cocoa/cocoabasic.m index f2d9059afe..f2f251a603 100644 --- a/DOCS/client_api_examples/cocoa/cocoabasic.m +++ b/DOCS/client_api_examples/cocoa/cocoabasic.m @@ -3,7 +3,7 @@ // but that's not quite ready yet. // You may need a basic Info.plist and MainMenu.xib to make this work. -// Build with: clang -o cocoabasic cocoabasic.m `pkg-config --libs --cflags mpv` +// Build with: clang -o cocoabasic cocoabasic.m `pkg-config --libs --cflags mpv` -framework cocoa #include @@ -207,5 +207,5 @@ int main(int argc, const char * argv[]) { app.delegate = delegate; [app run]; } - return EXIT_SUCCESS; + return 0; } -- cgit v1.2.3