• 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: Getting disk mount notification with Foundation tools
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting disk mount notification with Foundation tools


  • Subject: Re: Getting disk mount notification with Foundation tools
  • From: Mike Vannorsdel <email@hidden>
  • Date: Mon, 10 Jun 2002 12:02:25 -0600

Thanks Doug. I found my problem was the main run loop was not available to
receive the notification, as I had assumed it would come to the run loop
where the observer was added. But then I remembered how notifications
worked and knew I needed to allow my main run loop to have time to accept
the notification. It's working fine now. Thanks again.


On 6/10/02 12:07 PM, "Douglas Davidson" <email@hidden> wrote:

> On Friday, June 7, 2002, at 11:53 PM, Mike Vannorsdel wrote:
>
>
> I believe the problem here is that NSWorkspace itself receives its
> notifications of disk mounting and unmounting (which it then passes on
> to its clients) on the application's main thread--there is a similar
> issue for the application launch and quit notifications. Since it is a
> part of AppKit, NSWorkspace is entitled to assume and does assume the
> presence of an NSApplication object to assist it, and this further
> implies the notion of a main thread on which NSApplication runs its main
> event loop, and so forth. This is not really a bar to using it from
> within a command-line tool, but it does mean that some care may need to
> be taken. Let me know if you are not able to get this working.
_______________________________________________
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: 
 >Re: Getting disk mount notification with Foundation tools (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Getting disk mount notification with Foundation tools
  • Next by Date: Current process
  • Previous by thread: Re: Getting disk mount notification with Foundation tools
  • Next by thread: Re: Getting disk mount notification with Foundation tools
  • Index(es):
    • Date
    • Thread