macosx_finder_args: use cocoa instead of carbon
commit24e08eb5f2e54fce46a6ff504276aa8da4bf2fa2
authorStefano Pigozzi <stefano.pigozzi@gmail.com>
Wed, 11 Jan 2012 21:29:06 +0000 (11 22:29 +0100)
committerUoti Urpala <uau@mplayer2.org>
Sun, 25 Mar 2012 19:30:37 +0000 (25 22:30 +0300)
tree870fc24bdfb8db61e4f956c2e54bd7f5b90bbcec
parent98d399e2f331a5f85d83fc68611eb2713f24c4ee
macosx_finder_args: use cocoa instead of carbon

macosx_finder_args was using Carbon and wasn't usable any longer on
modern versions of MacOSX. This is very useful to embed mplayer in a
mac application bundle.

When using application bundles, the operating system will call the
main function with only one argument that identifies the process
serial number (this is some additional process identifier in osx other
than the pid). File open events are then dispatched to the application
through events that must be handled accordingly.
Makefile
configure
osdep/macosx_finder_args.c [deleted file]
osdep/macosx_finder_args.h
osdep/macosx_finder_args.m [new file with mode: 0644]