I'm going from memory, but I don't think you need to do your own accessory 
view. Just call setFileTypes: with the desired types on the NSOpenPanel 
instance and you should get a popup by default, I think ... ? You can then get 
the fileType from that object back or so.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.masters-of-the-void.com



On 25.01.2013, at 23:29, Steve Mills <smi...@makemusic.com> 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 (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/witness.of.teachtext%40gmx.net
> 
> This email sent to witness.of.teacht...@gmx.net


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to