Re: Show/Hide file extension issue in savePanel
Re: Show/Hide file extension issue in savePanel
- Subject: Re: Show/Hide file extension issue in savePanel
- From: "Sean McBride" <email@hidden>
- Date: Thu, 10 Sep 2009 10:16:15 -0400
- Organization: Rogue Research Inc.
On 9/9/09 5:40 PM, Paul Figgiani said:
>Prior to installing Snow Leopard the following code worked with no problem,
>It runs a savePanel for exporting an rtf doc with the contents of a
>textVIew. Under 10.6 it still works. However the option to show/hide the
>output file extension stopped working. The savePanel checkbox toggles the
>visibility of the file extension in the output file name textField. However
>the output file displays the extension regardless of the state of the
>checkbox.
Have you read the AppKit Release Notes?
<http://developer.apple.com/mac/library/releasenotes/Cocoa/AppKit.html>
It says:
"The save panel now respects the Finder option for "Show all file
extensions". If it is set, then the "Hide Extension" checkbox will be
hidden and the extension will always be shown by always returning YES
from -isExtensionHidden"
Perhaps that's what you're experiencing?
>[panel setCanSelectHiddenExtension:YES];
The docs for this method should obviously be updated. Alas, this never
seems to happen. Even stuff from the 10.5 Release Notes are not in the
real docs (yet?).
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden