• 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: NSWorkspaceDidMountNotification usage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWorkspaceDidMountNotification usage


  • Subject: Re: NSWorkspaceDidMountNotification usage
  • From: Finlay Dobbie <email@hidden>
  • Date: Sun, 4 May 2003 18:49:33 +0100

On Sunday, May 4, 2003, at 06:34 pm, Salanki Benjamin wrote:

I was trying to setup my app to listen to
NSWorkspaceDidMountNotifications, but I can't seem to get it tow work.

See the documentation for NSWorkspace's notifications:

Notifications

All NSWorkspace notifications are posted to NSWorkspaces own notification center, not the applications default notification center. Access this center using NSWorkspaces notificationCenter method.

So use [[NSWorkspace sharedWorkspace] notificationCenter] instead of [NSNotificationCenter defaultCenter]

-- Finlay
_______________________________________________
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: 
 >NSWorkspaceDidMountNotification usage (From: Salánki Benjámin <email@hidden>)

  • Prev by Date: Re: NSWorkspaceDidMountNotification usage
  • Next by Date: Re: Quit on close Window?
  • Previous by thread: Re: NSWorkspaceDidMountNotification usage
  • Next by thread: Cocoa/Applescript question
  • Index(es):
    • Date
    • Thread