[Q] NSOpenPanel / NSSavePanel customization
[Q] NSOpenPanel / NSSavePanel customization
- Subject: [Q] NSOpenPanel / NSSavePanel customization
- From: JongAm Park <email@hidden>
- Date: Wed, 21 Jun 2006 06:28:46 -0700
Hello.
After reading the Apple's document, I found out that an accessory view
could be attached to NSOpenPanel/SavePanel to customize it.
So, I would like to implement NSOpenPanel like this.
1. It should have a pop-up list which contains ".txt", ".c", "cpp",
"h", and so on.
- By choosing one among them, only files with the chosen extension
is shown.
2. Hide other files which don't have the chosen extension.
So, for doing (1), it should be possible to refresh the browse pane of
the NSOpenPanel based on the chosen extension.
Is there any method for refreshing the browse pane? Even though it is
possible, is there any way to filter out the files without the chosen
extension?
Probably the only way is to open the panel again by setting the
filetypes parameter. But then it will not look like "immediate
reflection to users' action".
Currently, if I pass filetypes parameter with the chosen extension,
other files which don't have the chosen extension are grayed out,
instead of being hidden. So, is there any way to hide the files without
the chosen extension? (2)
Thank you in advance.
JongAm Park
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden