• 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
NSWorkspaceDidMountNotification not firing on Snow Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSWorkspaceDidMountNotification not firing on Snow Leopard
      • From: Peter Ammon <email@hidden>
    • Re: NSWorkspaceDidMountNotification not firing on Snow Leopard
      • From: James Walker <email@hidden>
    • Re: NSWorkspaceDidMountNotification not firing on Snow Leopard
      • From: Dave Keck <email@hidden>
  • Prev by Date: Re: Session log-out on Snow Leopard
  • Next by Date: Re: NSWorkspaceDidMountNotification not firing on Snow Leopard
  • Previous by thread: NWPickerField a new iPhone control to share.
  • Next by thread: Re: NSWorkspaceDidMountNotification not firing on Snow Leopard
  • Index(es):
    • Date
    • Thread