unmountAndEjectDeviceAtPath problems
unmountAndEjectDeviceAtPath problems
- Subject: unmountAndEjectDeviceAtPath problems
- From: Matthew <email@hidden>
- Date: Mon, 13 Dec 2004 00:03:35 -0500
Has anyone had any troubles using unmountAndEjectDeviceAtPath? It seems
not to work for everything I try, all of which should be simple
ejectable devices like the iPod, disk images, my iDisk, etc. Here's the
code I'm using in a foundation tool if you want to try it out...it's
pretty simple:
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
BOOL result = [[NSWorkspace sharedWorkspace]
unmountAndEjectDeviceAtPath:@"/Volumes/someDeviceHere"];
printf("result is %d", result);
[pool release];
return 0;
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden