NSOpenPanel file types filter bug
NSOpenPanel file types filter bug
- Subject: NSOpenPanel file types filter bug
- From: Aniruddha Maru <email@hidden>
- Date: Wed, 31 Mar 2010 14:57:32 +0530
Hi All,
I have recently started working on Cocoa and it has been great so far but
I'm in a fix right now. I want to show a file open dialog with file types
filter which can be changed dynamically. Since NSOpenPanel doesn't support
filters, I decided to add my own filters pop-up list. When the selection in
this list changes, I attempt to refresh the already displayed content using
[panel validateVisibleColumns]. Although, this seems to have a weird effect
on the panel. Suppose the currently displayed folder is /A and I'm browsing
(in the list view) /A/B/C, i.e. currently the contents of A, B, and C are
being displayed in column fashion. On changing the filter, the columns for B
and C simply disappear, leaving only /A's column displayed. Also, in the
pop-up list that shows folder hierarchy (on the top on this window), the
hierarchy seems to be messed up. Before changing folder it shows
my-machine-name/A/B/C, after changing it shows my-machine-name/C, which is
obviously incorrect.
I also tried [panel update] to no avail. Is there another way to refresh
already visible columns?
Interestingly enough this problem doesn't reproduce on Leopard (tried on
10.5.8). Is this a known bug in 10.6? I have also upgraded to 10.6.3, but
the problem persists. Any pointers would be helpful.
TIA & Regards,
Aniruddha Maru
_______________________________________________
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