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.
This commit is contained in:
wm4 2015-05-21 22:45:56 +02:00
parent 83012fd77a
commit cbaa8d65fc
1 changed files with 2 additions and 2 deletions

View File

@ -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 <mpv/client.h>
@ -207,5 +207,5 @@ int main(int argc, const char * argv[]) {
app.delegate = delegate;
[app run];
}
return EXIT_SUCCESS;
return 0;
}