• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Extension Hiding in NSSavePanel : Not Toggling properly?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Extension Hiding in NSSavePanel : Not Toggling properly?
      • From: Dan Wood <email@hidden>
References: 
 >Extension Hiding in NSSavePanel : Not Toggling properly? (From: Dan Wood <email@hidden>)

  • Prev by Date: Re: examining keyboard state ?
  • Next by Date: heap memory among shared libraries
  • Previous by thread: Extension Hiding in NSSavePanel : Not Toggling properly?
  • Next by thread: Re: Extension Hiding in NSSavePanel : Not Toggling properly?
  • Index(es):
    • Date
    • Thread