• 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
Re: Whats wrong with my code?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: Whats wrong with my code?
  • Next by Date: Re: Whats wrong with my code?
  • Previous by thread: Whats wrong with my code?
  • Next by thread: Re: Whats wrong with my code?
  • Index(es):
    • Date
    • Thread