summaryrefslogtreecommitdiffstats
path: root/video/out/osx_common.m
Commit message (Collapse)AuthorAgeFilesLines
* macosx_application: move escape_loadfile_name in this fileStefano Pigozzi2013-05-301-137/+0
| | | | This allows to move back osx_common to raw C.
* osx: remove compatibility conditionals for 10.6Stefano Pigozzi2013-05-301-44/+0
| | | | | | | | At this point 10.6 is pretty old and we don't want to supporting old platforms. I'm killing all the 10.6 compatibility code before doing more refactorings. Next commits will also use newer Objective-C syntax such as literals and @autoreleasepool.
* Prefix keycode defines with MP_wm42013-02-121-15/+15
| | | | | | | | | | Do this to reduce conflicts with <linux/input.h>, which contains some conflicting defines. This changes the meaning of MP_KEY_DOWN: KEY_DOWN is renamed to MP_KEY_DOWN (cursor down key) MP_KEY_DOWN is renamed to MP_KEY_STATE_DOWN (modifier for key down state)
* osx_common: cache OSX version numberStefano Pigozzi2013-01-271-25/+31
| | | | | | | | | | This commit makes `is_osx_version_at_least` cache the result of reading `/System/Library/CoreServices/SystemVersion.plist`. Since that is a file read operation it was bad to use this function frequently (i.e.: when processing user events). Remove `is_lion_or_above` (introduced in c9396c0a) as that was a more specialized wrapper which had the only advantage of adding it's own cache.
* osxbundle: cocoa_common: change playlist on fileopen eventsStefano Pigozzi2013-01-161-0/+21
| | | | | | | When opening new files in Finder when `mpv` is running from an application bundle, the new files will now replace the current playlist. Fixes #14
* osx_common: Avoid deprecated Gestalt callsStefano Pigozzi2012-12-021-0/+154
Gestalt is deprecated since 10.8. Change the code to read the OS version from a system plist file. As mentioned http://stackoverflow.com/a/11072974/499456 Apple engineers are suggesting this plist reading approach.