Customizing open panel
Customizing open panel
- Subject: Customizing open panel
- From: Chris Ridd <email@hidden>
- Date: Sun, 07 Sep 2003 16:34:06 +0100
I've got a situation where I need to be able to open two different file
formats, but the act of opening one format involves a conversion to the
second format.
The wrinkle is that there are options involved in doing the conversion.
What's the best way of doing this?
So far I've got a custom document controller that inserts an accessory view
into the NSOpenPanel which it then calls -runModalForTypes: on, and I was
expecting to be able to disable/enable the controls when files of the two
different formats were selected. However, there appears to be no way of
detecting when a file's been selected in the open panel's browser, so this
plan seems to be a failure. (I'm also not sure what should have been done if
multiple files were selected.)
My other thought was to have an additional sheet (or something) come up per
file after the (unaccessorized) NSOpenPanel was OKed. But I don't like this;
it seems somehow tacky.
Nothing in the HIG jumped out at me as "the way to do it" and I haven't seen
many apps that do the same kind of thing.
What approach would folk suggest?
Cheers,
Chris
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.