Added NSApplicationDelegate's openFiles for wxOSX-Cocoa.
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Tue, 9 Aug 2011 22:17:12 +0000 (22:17 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Tue, 9 Aug 2011 22:17:12 +0000 (22:17 +0000)
commitee7553e935502f77f7aed93221a449b982dee40d
tree162ebbc791e2aedf701c3813cd904f21b987e542
parentaf9c02ce209c78a17bedf18ba8a4f955e70a8fd2
Added NSApplicationDelegate's openFiles for wxOSX-Cocoa.

openFiles (available since OS X 10.3) replaces using the openFile method. It allows for more convenient handling of multiple drops and knowing in advance how much files/folders are dropped instead of openFile with which you only get to respond to a single file/folder drop at a time. By default openFiles calls the newly added MacOpenFiles which calls MacOpenFile multiple times, so ordinarily the behaviour is backwards compatible (both on wxOSX Cocoa and Carbon).

The openFile instance method has been removed because it doesn't seem to be called anymore: neither when dropping a single file on the application in the dock or Finder nor when passed as a command-line argument.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
docs/changes.txt
include/wx/osx/app.h
interface/wx/app.h
samples/mediaplayer/mediaplayer.cpp
src/osx/carbon/app.cpp
src/osx/cocoa/utils.mm
utils/helpview/src/helpview.cpp
utils/helpview/src/helpview.h