Re: Extension Hiding in NSSavePanel : Not Toggling properly?
Re: Extension Hiding in NSSavePanel : Not Toggling properly?
- Subject: Re: Extension Hiding in NSSavePanel : Not Toggling properly?
- From: Ali Ozer <email@hidden>
- Date: Tue, 25 Sep 2001 14:30:59 -0700
>
I'm trying to do an NSSavePanel and handle the hidden extension
>
properly. It's not quite working right. In other
>
hidden-extension-savvy applications, the extension disappears and
>
reappears when I toggle the checkbox in the Save Panel. Is this
>
something I have to do manually through some hackery?
TextEdit is an example of how this can be done --- at least for the
RTF/RTFD cases. (The plain text case is a bit more tricky in TextEdit,
and there is at least one issue.)
Assuming you tell NSSavePanel what the required extension is, you don't
have to do anything yourself while the panel is being run --- the
filename you get back should always have the extension; you just set the
hidden extension bit when saving the file.
Ali