• 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: Dan Bernstein <cocoa-dev%email@hidden>
  • Date: Sun, 4 May 2003 20:49:30 +0300

Workspace notifications are posted to NSWorkspace's shared notification center. Use

[[[NSWorkspace sharedWorkspace] notificationCenter] addObserver:self selector:@...]

-- Dan

On Sunday, May 4, 2003, at 08:34 PM, Salanki Benjamin wrote:

Hello,

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

[[NSNotificationCenter defaultCenter] addObserver:self

selector:@selector(mediaMounted:)

name:NSWorkspaceDidMountNotification
object:[NSWorkspace
sharedWorkspace]];

but my mediaMounted: method never gets called.
what am I doing wrong?

thx,

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

  • Prev by Date: Re: NSWorkspaceDidMountNotification usage
  • Next by Date: Re: NSWorkspaceDidMountNotification usage
  • Previous by thread: Re: NSWorkspaceDidMountNotification usage
  • Next by thread: Re: NSWorkspaceDidMountNotification usage
  • Index(es):
    • Date
    • Thread