• 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: Recuperating after NS_HANDLER
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Recuperating after NS_HANDLER


  • Subject: Re: Recuperating after NS_HANDLER
  • From: j o a r <email@hidden>
  • Date: Sun, 16 May 2004 16:41:27 +0200

It smells like a premature optimization to me...

j o a r

On 2004-05-16, at 15.45, Shaun Wexler wrote:

This is better:

do {
NS_DURING
while(someStuff) {
something that could throw an exception;
}
NS_HANDLER
handle it;
NS_ENDHANDLER

} while (someStuff);

Entering and exiting exception handlers carries a lot of overhead... ;)
_______________________________________________
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: Recuperating after NS_HANDLER
      • From: Shaun Wexler <email@hidden>
References: 
 >Recuperating after NS_HANDLER (From: Francisco Tolmasky <email@hidden>)
 >Re: Recuperating after NS_HANDLER (From: Shaun Wexler <email@hidden>)

  • Prev by Date: Re: NSTableView not scrolling.
  • Next by Date: IB calling init of AppKit subclass [was Re: Window Styles]
  • Previous by thread: Re: Recuperating after NS_HANDLER
  • Next by thread: Re: Recuperating after NS_HANDLER
  • Index(es):
    • Date
    • Thread