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

try statement


  • Subject: try statement
  • From: Lorenzo <email@hidden>
  • Date: Tue, 20 May 2003 10:13:32 +0200

I attempted to use the "try" statement in my Cocoa application

try{
//I do something here;
}
catch (Exception result) {
//I do other things here;
}

But whatever I write inside the braquets
the compiler says everytime:
illegal statement, missing `;' after `try'

I remember in Carbon I used that some way,
so please what did I forget?
And how to get the error with catch?


Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: try statement
      • From: Chris Ridd <email@hidden>
  • Prev by Date: Re: How to stop Classic launching iTunes? (Cocoa & Applescript)
  • Next by Date: Re: try statement
  • Previous by thread: Re: Killing a thread by force
  • Next by thread: Re: try statement
  • Index(es):
    • Date
    • Thread