Miro Jurisic <macdev.DeleteThis@meeroh.org> wrote in message news:<macdev-22F05E.13523324022004.DeleteThis@senator-bedfellow.mit.edu>...
> You need to add the information about file types you accept to your app's
> Info.plist file, and then you have to write an Apple Event handler that accepts
> those files and opens them..
>
> hth
>
> meeroh
I have added the following to my Info.plist file.
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>tiff</string>
<string>tif</string>
</array>
<key>CFBundleTypeName</key>
<string>NSTIFFPboardType</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
</dict>
</array>
I though this would allow the App bundle to late *.tiff and *.tif
files to dropped on it. I have not implmented the event handler yet,
but I would think I could drop the file on the App would and it would
launch but would not load the files since I have not wrote the handler
yet. I have also learned of a function called wxApp::MacOpenFile that
I can overide that should catch the apple even you are talking about.<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: allowing files to be dropped on your apps icon in OS X to ..