SDL_DROPFILE on OSX

Has anyone seen this work?–
john skaller
@john_skaller
http://felix-lang.org

Yes it works, I believe OS X is the only platform it’s implemented on right now actually ( http://bugzilla.libsdl.org/show_bug.cgi?id=1593 ).

I believe in OS X you need to add file types do the Document Types section in your app’s properties in the Xcode project for Cocoa to allow drop file events.On 2013-08-09, at 2:09 PM, john skaller wrote:

Has anyone seen this work?


john skaller
skaller at users.sourceforge.net
http://felix-lang.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Yes it works, I believe OS X is the only platform it’s implemented on right now actually ( http://bugzilla.libsdl.org/show_bug.cgi?id=1593 ).

I believe in OS X you need to add file types do the Document Types section in your app’s properties in the Xcode project for Cocoa to allow drop file events.

Oh, that’s a pain. I do not use Xcode, Cocoa, C, or ObjC. My “apps” are (usually)
shared libraries (*.dylib) and always C++.

Indeed, this is an important reason I am using SDL :slight_smile:

Thanks for the info!On 10/08/2013, at 3:16 AM, Alex Szpakowski wrote:


john skaller
@john_skaller
http://felix-lang.org

To clarify, you don’t need to modify any SDL / Objective C / Cocoa code or Xcode settings directly, you just need to edit the application’s Info.plist (all OS X applications should have an Info.plist file in their Contents folder, I believe.)

http://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/DocumentInteraction_TopicsForIOS/Articles/RegisteringtheFileTypesYourAppSupports.html

http://stackoverflow.com/a/5331878/1193700On 2013-08-09, at 11:59 PM, john skaller wrote:

On 10/08/2013, at 3:16 AM, Alex Szpakowski wrote:

Yes it works, I believe OS X is the only platform it’s implemented on right now actually ( http://bugzilla.libsdl.org/show_bug.cgi?id=1593 ).

I believe in OS X you need to add file types do the Document Types section in your app’s properties in the Xcode project for Cocoa to allow drop file events.

Oh, that’s a pain. I do not use Xcode, Cocoa, C, or ObjC. My “apps” are (usually)
shared libraries (*.dylib) and always C++.

Indeed, this is an important reason I am using SDL :slight_smile:

Thanks for the info!


john skaller
skaller at users.sourceforge.net
http://felix-lang.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

To clarify, you don’t need to modify any SDL / Objective C / Cocoa code or Xcode settings directly, you just need to edit the application’s Info.plist (all OS X applications should have an Info.plist file in their Contents folder, I believe.)

Again thanks … but mine don’t. My applications work similarly to
Python scripts: they’re pure text files (which are translated to C++
and compiled to binary as a matter of caching, same as Python
except I make binary code not bytecode).

Also like Python, the script is platform independent so
it has to “just work the same” on all platforms.

At best the run time executable could have an info.plist,
but that would break the self building.

So I guess I miss out (as would Python?)On 10/08/2013, at 1:15 PM, Alex Szpakowski wrote:


john skaller
@john_skaller
http://felix-lang.org

Slightly off-topic here, but last time I checked it worked successfully on Linux.
I just had to use SDL_EventState() to enable it.e

Alex Szpakowski wrote:> Yes it works, I believe OS X is the only platform it’s implemented on right now actually ( http://bugzilla.libsdl.org/show_bug.cgi?id=1593 (http://bugzilla.libsdl.org/show_bug.cgi?id=1593) ).

I believe in OS X you need to add file types do the Document Types section in your app’s properties in the Xcode project for Cocoa to allow drop file events.

On 2013-08-09, at 2:09 PM, john skaller <skaller at users.sourceforge.net (skaller at users.sourceforge.net)> wrote:

Has anyone seen this work?


john skaller
skaller at users.sourceforge.net (skaller at users.sourceforge.net)
http://felix-lang.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


C is the God’s Programming Language