• 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
unmountAndEjectDeviceAtPath problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Seeking advice on NSLock usage
  • Next by Date: Re: Seeking advice on NSLock usage
  • Previous by thread: buggy WebKit behavior
  • Next by thread: NSMovieView seems to be disabled first time?!
  • Index(es):
    • Date
    • Thread