At 1:58 PM +0100 3/15/06, Emile Schwarz wrote:
I just saw a difference between the presence or the absence of:
Right. You're describing the type pop-up feature.
As an example, if you use .SaveAsPicture and choose bmp, the file is
saved as PICT but the file extension is bmp (and so you lie to
everyone and Preview will not display the file unless you remove the
extension (.bmp) or change it to .pct or .pict [.pect works too !].
Right again -- it's up to your code to examine the file name that's
returned and figure out what type it's supposed to be saving.
Unfortunately, using:
SaveDlg.Filter = GraphicsFT.PICT
does not provide this mechanism; i.e. is ignored / only
GraphicsFT.All provide the above mechanism.
Er... what's unfortunate about this? In this case, you're saying
that there is no choice in the types; it's going to be a PICT no
matter what. So the pop-up doesn't appear -- what would be the point
of a popup that has only one item?
If you want to support file extensions according to Apple's latest
fashion, please remember to set the SuggestedFileName to have the
correct extension before showing the dialog. The dialog will then
properly annoy the user by not letting them remove or change that
extension.
How do I know what Method to use (to provide the data in the correct type) ?
You look at the returned file name.
So a simple check in the extension gives the choosed type and allows
you to call the Method that will save the data with the correct
format.
Right-o!
Best,
- Joe
--
Joseph J. Strout
[EMAIL PROTECTED]
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>