Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Whats wrong with my code?



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


References: 
 >Whats wrong with my code? (From: Luke Sands <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.