FROM : Corbin Dunn
DATE : Sat Jan 19 00:13:04 2008
On Jan 17, 2008, at 4:43 PM, John Stiles wrote:
> In an NSOpenPanel, I want to force the open panel to re-check the "-
> panel:shouldShowFilename:" status on all the visible files. (In my
> accessory view, you can change options about what you want to open,
> and I want the open panel to honor any changes immediately.)
>
> I've done some Googling and some people have said that calling
> "[window update]" would cause this to happen, but it doesn't seem to
> be working for me in Leopard. Neither [window update] and [window
> display] seem to have any visible effect.
>
> If I go to the Finder and create a new file, this does force the
> Open panel to re-check everything. And of course if I browse to a
> different folder and then browse back, that also solves it. However
> neither of these tricks seems to be very useful :)
>
> Any ideas? Did this change in Leopard or is there some trick I'm
> missing?
Yes, call -validateVisibleColumns. It is sort of expensive, so don't
call it too frequently. If you want a cheaper version, please log a
feature request.
corbin
DATE : Sat Jan 19 00:13:04 2008
On Jan 17, 2008, at 4:43 PM, John Stiles wrote:
> In an NSOpenPanel, I want to force the open panel to re-check the "-
> panel:shouldShowFilename:" status on all the visible files. (In my
> accessory view, you can change options about what you want to open,
> and I want the open panel to honor any changes immediately.)
>
> I've done some Googling and some people have said that calling
> "[window update]" would cause this to happen, but it doesn't seem to
> be working for me in Leopard. Neither [window update] and [window
> display] seem to have any visible effect.
>
> If I go to the Finder and create a new file, this does force the
> Open panel to re-check everything. And of course if I browse to a
> different folder and then browse back, that also solves it. However
> neither of these tricks seems to be very useful :)
>
> Any ideas? Did this change in Leopard or is there some trick I'm
> missing?
Yes, call -validateVisibleColumns. It is sort of expensive, so don't
call it too frequently. If you want a cheaper version, please log a
feature request.
corbin






Cocoa mail archive

