Re: NSWorkspaceDidMountNotification not firing on Snow Leopard

2009-10-08 Thread Kevin Bracey
Thank you all for your help, I really couldn't believe something like this could be broken, lol. Ok, I've found the difference: On Leopard : 9/10/09 11:45:31 AM iLike Installer[11553] NSConcreteNotification 0x19d6f0 {name = NSWorkspaceDidMountNotification; object = ; userInfo = { NSDev

Re: NSWorkspaceDidMountNotification not firing on Snow Leopard

2009-10-08 Thread Peter Ammon
On Oct 8, 2009, at 1:05 AM, Kevin Bracey wrote: 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 holdMountPoin

Re: NSWorkspaceDidMountNotification not firing on Snow Leopard

2009-10-08 Thread James Walker
Kevin Bracey wrote: anyone got any ideas as to what I could be doing wrong or another way > to listen for an afp to mount? You could try installing a handler for the kEventClassVolume / kEventVolumeMounted Carbon Event. (I'm pretty sure this can be done with parts of the Carbon Event Manager

Re: NSWorkspaceDidMountNotification not firing on Snow Leopard

2009-10-08 Thread BJ Homer
On Thu, Oct 8, 2009 at 2:39 AM, Dave Keck wrote: > Not sure why it's not working, but if it turns out to be a bug with > NSWorkspace, you might try using the Disk Arbitration framework > instead. See DARegisterDiskAppearedCallback(). Note that there's a difference between "disk appeared" and "d

Re: NSWorkspaceDidMountNotification not firing on Snow Leopard

2009-10-08 Thread Dave Keck
Not sure why it's not working, but if it turns out to be a bug with NSWorkspace, you might try using the Disk Arbitration framework instead. See DARegisterDiskAppearedCallback(). ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

NSWorkspaceDidMountNotification not firing on Snow Leopard

2009-10-08 Thread Kevin Bracey
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" tel