Re: NSWorkspaceDidMountNotification usage
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.