Re: NSOpenPanel and new directories?
Re: NSOpenPanel and new directories?
- Subject: Re: NSOpenPanel and new directories?
- From: Jeremy Dronfield <email@hidden>
- Date: Wed, 30 Mar 2005 10:26:29 +0100
On 30 Mar 2005, at 3:08 am, Matt Neuburg wrote:
On Tue, 29 Mar 2005 17:55:31 -0800, "David Piasecki"
<email@hidden>
said:
I'm using an NSOpenPanel to open files in my application. It works
great except when I create a new directory outside of my application.
That directory is not recognized in the NSOpenPanel unless I quit and
reload my application. Is there any sort of refresh I can do on the
NSOpenPanel object so it can behave as I would expect it to?
I would like to know this too. My app opens text documents. If I save
some
new text documents elsewhere while my app is open, and I come back to
my app
and choose File > Open, the new text documents are not shown in the
directory where they actually are. I have to quit my app and start it
up
again in order to force the File > Open dialog to refresh itself. I
regard
this as a bug in Cocoa, but maybe there's a workaround and I'd like to
hear
about it if there is. m.
If this is a Cocoa bug, it seems likely to be somewhere in the
document-based architecture (I assume your app uses NSDocument). I make
this assumption because neither TextEdit (which doesn't use NSDocument)
nor my own app (ditto) suffer this problem. In both these applications,
new files created as you describe show up right away in Open panels.
Hold on a second... I just tried it with Taco HTML Edit (which *does*
use NSDocument, so far as I can tell), and that behaves correctly too.
So presumably not a Cocoa bug...?
Regards,
-Jeremy
==============================================
SkoobySoft, home of viJournal and Skooby Renamer
email: email@hidden or visit:
<http://freespace.virgin.net/jeremy.dronfield/skoobysoft/
skoobysoft.html>
==============================================
_______________________________________________
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