• 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: error exit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error exit


  • Subject: Re: error exit
  • From: Fritz Anderson <email@hidden>
  • Date: Sat, 30 Aug 2008 17:41:13 -0500

On 30 Aug 2008, at 2:45 PM, Roland Silver wrote:

When my program encounters an error it reports it, then would like to terminate operation. What's the easiest way to do that?

You give us no idea of what you are asking about. Your question doesn't appear to have anything to do with a mailing list discussing the Xcode development environment.


If you are asking about a Cocoa application, you should be asking (with a _lot_ more details, and showing that you have done much, much more homework than you've shown so far) on Apple's cocoa-dev mailing list. Look at method -[NSApplication terminate:].

If you are asking about a Carbon application, you should be asking (with a _lot_ more details, and showing that you have done much, much more homework than you've shown so far) on Apple's carbon-dev mailing list. Look at ExitToShell().

If you are asking about a command-line tool, you should consult any elementary text on UNIX programming (or even on the C programming language). Look at exit(3), or just find a way to return from your main() function.

	— F

 --
Fritz Anderson -- Xcode 3 Unleashed: Now Available -- http://x3u.manoverboard.org/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >error exit (From: Roland Silver <email@hidden>)

  • Prev by Date: error exit
  • Next by Date: Re: Strip command
  • Previous by thread: error exit
  • Next by thread: otool addresses
  • Index(es):
    • Date
    • Thread