How to save current path for NSOpenPanel and NSSavePanel

Uli Kusterer kusterer at gmail.com
Sat May 5 12:04:34 PDT 2007


On 05.05.2007, at 19:26, Duncan Champney wrote:
> Since my last post I discovered that the shared  
> NSDocumentController's method currentDirectory gives me half of the  
> solution, but only half. it would let me find out the current  
> directory that the document controller will use for a document  
> NSOpenPanel or NSSavePanel. However, I need an equivalent  
> NSDocumentController -setCurrentDirectory call that would let me  
> change the current directory, and there does not appear to be such  
> a call.

I think NSDocument has a method that lets you look at and mess with  
an open/save panel before it gets displayed. Have you looked there?

Cheers,
-- M. Uli Kusterer
http://www.zathras.de





More information about the MacOSX-dev mailing list