• 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: Getting file type from Save dlog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting file type from Save dlog


  • Subject: Re: Getting file type from Save dlog
  • From: Kevin Perry <email@hidden>
  • Date: Fri, 25 Jan 2013 14:42:01 -0800

If you’re using your own accessory view instead of the built-in one (shouldRunSavePanelWithAccessoryView), you’re responsible for changing the value of fileTypeFromLastRunSavePanel. One way to do this is to make your NSDocument instance the target of the popup button’s action and change an internal ivar inside that action method.

-KP

On Jan 25, 2013, at 2:29 PM, Steve Mills <email@hidden> wrote:

> I'm not understanding how, if the user changes the type of file being saved in the Save dlog, how that type gets back to the document being saved. I've added an accessory panel from which the user can choose the file type being saved. Each type changes the extension of the file name in the name field. But when it gets back to my writeToURL: method, the typeName param is always the primary file type and never what the user might have changed it to. I've tried inspecting fileTypeFromLastRunSavePanel: and fileType:, but they're always the same as typeName.
>
> How is the type chosen in the dlog (it's a valid extension and UTI) supposed to get passed back to the document?
>
> --
> Steve Mills
> office: 952-818-3871
> home: 952-401-6255
> cell: 612-803-6157
>
>
>
> _______________________________________________
>
> 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


_______________________________________________

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: Getting file type from Save dlog
      • From: Steve Mills <email@hidden>
References: 
 >Getting file type from Save dlog (From: Steve Mills <email@hidden>)

  • Prev by Date: Getting file type from Save dlog
  • Next by Date: Re: Getting file type from Save dlog
  • Previous by thread: Getting file type from Save dlog
  • Next by thread: Re: Getting file type from Save dlog
  • Index(es):
    • Date
    • Thread