Re: Reusing the last viewed directory
Re: Reusing the last viewed directory
- Subject: Re: Reusing the last viewed directory
- From: James Chen <email@hidden>
- Date: Tue, 13 Jan 2004 09:38:21 +0800
Hi,
You could just passing nil for the parameter which specify the
directory.
From document:
If directory is nil the directory is the same directory used in the
previous invocation of the panel. Passing nil for directory is probably
the best choice for most situations.
Regards,
James
------------------------------------
Ulead Systems Inc.
James Chen
Software Engineer
Image Div.
------------------------------------
On Jan 12, 2004, at 2:27 AM, Chad Armstrong wrote:
>
Is there a quick and dirty way when any subsequent Open File/Directory
>
panels are opened that it starts in the last viewed directory? Right
>
now I just have the home directory coded in, as shown in the code
>
below.
>
>
result = [dir_panel runModalForDirectory:NSHomeDirectory() file:nil
>
types:nil];
>
>
Is there any NSSomething() call to retrieve the last directory, AND if
>
there is no last directory, then it can default to something like the
>
NSHomeDirectory() (or some other specified directory?
>
>
Chad Armstrong
>
email@hidden
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.