• 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
NSSavePanel and file formats
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSSavePanel and file formats


  • Subject: NSSavePanel and file formats
  • From: Quincey Morris <email@hidden>
  • Date: Fri, 17 Apr 2009 14:56:59 -0700

I notice that the current HIG recommends the use of a file format popup in the Save dialog, when an application supports multiple formats:

http://developer.apple.com/documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGMenus/XHIGMenus.html#/ /apple_ref/doc/uid/TP30000356-TPXREF105

and the picture of the Save dialog seems to suggest that the popup is to be implemented in an accessory view:

http://developer.apple.com/documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGWindows/XHIGWindows.html#/ /apple_ref/doc/uid/20000961-SW47

It seems to me that *each* of the formats in the popup is going to have its *own* list of valid file extensions, so that changing the selected item in the popup should make a corresponding change to NSSavePanel's allowedFileTypes.

I can sort of see my way to doing that by subclassing a NSViewController that owns the accessory view, and making the view controller responsible for calling allowedFileTypes when the popup selection changes, but I'm wondering if I'm overlooking a more direct solution.

I'm also wondering if changing allowedFileTypes while the Save dialog is displayed will actually work. (Will it replace the extension of whatever is currently in the file name text field?)

Comments, anyone?


_______________________________________________

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


  • Follow-Ups:
    • Re: NSSavePanel and file formats
      • From: Graham Cox <email@hidden>
  • Prev by Date: Using CFStringTransform with Attributed strings or runs, maintaining the styling of the Attributes in transformed results.
  • Next by Date: Re: SQLite 3 crash report - debugging help needed
  • Previous by thread: Re: Using CFStringTransform with Attributed strings or runs, maintaining the styling of the Attributes in transformed results.
  • Next by thread: Re: NSSavePanel and file formats
  • Index(es):
    • Date
    • Thread