• 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: Force NSOpenPanel's -panel:shouldShowFilename: to get called again?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Force NSOpenPanel's -panel:shouldShowFilename: to get called again?


  • Subject: Re: Force NSOpenPanel's -panel:shouldShowFilename: to get called again?
  • From: John Stiles <email@hidden>
  • Date: Fri, 18 Jan 2008 09:21:50 -0800

I hadn't tried it until now, but it didn't help :(
I tried both
   NSString* directory = [panel directory];
   [[NSWorkspace sharedWorkspace] noteFileSystemChanged:directory];

and the more generic
   [[NSWorkspace sharedWorkspace] noteFileSystemChanged];

In the first case I also verified that "directory" was the path that I expected.
Thanks for the help… any more ideas?



Hamish Allan wrote:
On Jan 18, 2008 12:43 AM, John Stiles <email@hidden> wrote:

If I go to the Finder and create a new file, this does force the Open
panel to re-check everything.

Any ideas?

Have you tried NSWorkspace's noteFileSystemChanged:?

Hamish
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Force NSOpenPanel's -panel:shouldShowFilename: to get called again?
      • From: "Hamish Allan" <email@hidden>
References: 
 >Force NSOpenPanel's -panel:shouldShowFilename: to get called again? (From: John Stiles <email@hidden>)
 >Re: Force NSOpenPanel's -panel:shouldShowFilename: to get called again? (From: "Hamish Allan" <email@hidden>)

  • Prev by Date: Re: App-specific URLs and the pasteboard. Need help.
  • Next by Date: Re: Check ability to write to nonexistent directory
  • Previous by thread: Re: Force NSOpenPanel's -panel:shouldShowFilename: to get called again?
  • Next by thread: Re: Force NSOpenPanel's -panel:shouldShowFilename: to get called again?
  • Index(es):
    • Date
    • Thread