Re: Whats wrong with my code?
Re: Whats wrong with my code?
- Subject: Re: Whats wrong with my code?
- From: John Hörnkvist <email@hidden>
- Date: Wed, 31 Oct 2001 01:14:55 +0100
On Wednesday, October 31, 2001, at 12:55 AM, Luke Sands wrote:
Cocoa Experts!
Sorry to keep asking, simple I'm sure, questions but what the hells
wrong with my code.....
- (IBAction)myAction:(id)sender
{ NSString *path = @"/Volumes/Hannibal";
[[NSWorkspace sharedWorkspace]
unmountAndEjectDeviceAtPath:path];
}
Looks OK from here. You may want to do something reasonable when
ejecting fails, though.
What's the problem? (What makes you believe that the code is wrong?)
Regards,
John Hornkvist
--
ToastedMarshmallow, the perfect Cocoa companion
http://www.toastedmarshmallow.com