Manually mount device (DADiskMountWithArguments), Desktop not updated until next Finder launch
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Hi all, The title kinda says it all. Steps to reproduce: 1) Mount a device to a specific location, using the following kind of code: DADiskMountWithArguments(disk_ref, mount_url, kDADiskMountOptionDefault, &mount_disk_callback, (void*)&mount_result, mount_args); where mount_url is a valid CFURL... 2) Look on the Desktop. There's no volume icon! :( 3) Open a Finder window. 4) Look on the Desktop. Now there's a volume icon! :D So my question is, how can I get the volume icon to appear programmatically? I've tried notifying processes of a Desktop refresh, which I'm guessing _isn't_ the way to go about it, since nothing has added the alias to the Desktop as yet... : OSStatus result = FNNotifyByPath( (const UInt8*)desktop_buf, kFNDirectoryModifiedMessage, kNilOptions) I really don't want to go down the route of sending a kAESync message either (all that effort for this little issue...). Any ideas? Thanks for any help. Kind regards, Tim _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Tim Schooley