NSWorkspaceDidMountNotification not firing on Snow Leopard
NSWorkspaceDidMountNotification not firing on Snow Leopard
- Subject: NSWorkspaceDidMountNotification not firing on Snow Leopard
- From: Kevin Bracey <email@hidden>
- Date: Thu, 8 Oct 2009 21:05:38 +1300
Hi Guys and Gals,
I have some Leopard code that works fine, but on Snow it doesn't,
hoping someone might have an idea how for fix it ;-)
I use an AppleScript to mount a afp
tell application "iLike Installer"
set holdMountPoint to stringForKey "MountPoint"
tell application "Finder"
mount volume holdMountPoint
end tell
end tell
This works great, the sharepoint mounts as expected on both OS X 5.8
and OS X 6.1 :)
Now I have a Cocoa App listening for the share to mount with
[[[NSWorkspace sharedWorkspace] notificationCenter] addObserver:self
selector:@selector(deviceDidMount:)
name:NSWorkspaceDidMountNotification
object:NULL];
shortly are the point mounts on Leopard the -( void )deviceDidMount:
( NSNotification *)userInfo fires as expected and it goes about it's
business,
but on Snow it never fires:(
anyone got any ideas as to what I could be doing wrong or another way
to listen for an afp to mount?
Cheers
Kevin B
_______________________________________________
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