NSOpenPanel crashes application
NSOpenPanel crashes application
- Subject: NSOpenPanel crashes application
- From: "" <email@hidden>
- Date: Sun, 16 Apr 2006 18:59:46 -0700
I found a problem with NSOpenPanel. If a file has a similar structure to a TIFF
file (header and magic byte) NSOpenPanel will try to display a preview image
(even if the file does not have the .tif or .tiff extension). However, if the
file does not adhere to the TIFF specification the application will crash!
An example is the Carl Zeiss LSM format. These files are used in scientific
applications.
It has some similarity to TIFF files, but the extension is .lsm. Several Cocoa
applications (e.g. Osirix) will crash when: a) the user selects the file in
NSOpenPanel
b) the panel tries to display the preview
c) the file contains data that is not valid TIFF data
Here my questions:
1.) How can a Cocoa application suppress / change the preview in NSOpenPanel?
2.) Can I intercept the preview and substitute it with my own decoder?
Any help is appreciated.
Thanks, Kolja
_____________________
Kolja Wawrowsky
Confocal Core
Cedars Sinai Medical Center
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden