Blender Git Commit Log

Git Commits -> Revision 0e6b88f

Revision 0e6b88f by Damien Plisson (master)
February 1, 2010, 09:11 (GMT)
Cocoa : implement opening .blend file by double-clicking on it in OSX Finder

When the user double-clicks on a document file in the Finder, OSX doesn't simply give the filename as a command-line argument when calling Blender, as it is done in other OSes.
Instead, it launches the app if needed, and then sends an "openFile" event.

The user can also open a document file by dropping its icon on the app dock icon. But as this is not real Drag'n'drop, I've renamed the Ghost event to a less confusing "GHOST_kEventOpenMainFile" name.

DND Ghost wiki page updated : http://wiki.blender.org/index.php/BlenderDev/Blender2.5/DragnDrop

Commit Details:

Full Hash: 0e6b88f993e034f1e3083bf26f08bc1dfd5ccf2e
SVN Revision: 26496
Parent Commit: c3e96bf
Lines Changed: +125, -23

1 Added Path:

/intern/ghost/intern/GHOST_EventString.h (+66, -0) (View)

4 Modified Paths:

/intern/ghost/GHOST_Types.h (+2, -1) (Diff)
/intern/ghost/intern/GHOST_EventPrinter.cpp (+7, -19) (Diff)
/intern/ghost/intern/GHOST_SystemCocoa.mm (+27, -3) (Diff)
/source/blender/windowmanager/intern/wm_window.c (+23, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021