• 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
NS_DURING and return
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NS_DURING and return


  • Subject: NS_DURING and return
  • From: Stephane Sudre <email@hidden>
  • Date: Mon, 13 Feb 2006 11:09:42 +0100

Stupid question:

Since the following code is not supported.

NS_DURING
	return something;
NS_HANDLER
	return anotherThing;
NS_ENDHANDLER

What other solutions exist?

1. using an intermediate var and moving the return outside the NS_DURING. That is the solution I'm using.

2. Is NS_VALUERETURN what shall be used instead of return in such a case?

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


  • Follow-Ups:
    • Re: NS_DURING and return
      • From: "Timothy J. Wood" <email@hidden>
  • Prev by Date: Re: are the doc NSLock examples bogus?
  • Next by Date: Re: Affine Transform
  • Previous by thread: [MEET] Chicago CAWUG / CocoaHeads - Tuesday 2/14
  • Next by thread: Re: NS_DURING and return
  • Index(es):
    • Date
    • Thread