• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Reusing the last viewed directory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Reusing the last viewed directory (From: Chad Armstrong <email@hidden>)

  • Prev by Date: Re: calling cocoa method inside carbon function...
  • Next by Date: Re: Controlling NSTextView's ruler accessory view
  • Previous by thread: Re: Reusing the last viewed directory
  • Next by thread: Tutorials using NSDrawer???
  • Index(es):
    • Date
    • Thread