• 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: C++ exception inside -[NSString drawWithRect:options:attributes:]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ exception inside -[NSString drawWithRect:options:attributes:]


  • Subject: Re: C++ exception inside -[NSString drawWithRect:options:attributes:]
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 28 Sep 2009 12:05:58 -0700

On Mon, Sep 28, 2009 at 11:50 AM, Sander Stoks <email@hidden> wrote:
> That is by no means dictated by C++.  In fact, it's quite common to reserve
> exceptions for "exceptional" cases in C++ as well.  C++ exceptions can be
> free as long as they aren't thrown, but the cost if they are can be
> substantial.

Nobody said it was dictated.  I just said that the C++ code in some of
the frameworks uses exceptions this way.

Cocoa, however, *does* dictate the proper use of exceptions, and it
doesn't always jive with C++ code that shares the unified exception
model.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: C++ exception inside -[NSString drawWithRect:options:attributes:] (From: Sander Stoks <email@hidden>)

  • Prev by Date: Re: C++ exception inside -[NSString drawWithRect:options:attributes:]
  • Next by Date: Re: C++ exception inside -[NSString drawWithRect:options:attributes:]
  • Previous by thread: Re: C++ exception inside -[NSString drawWithRect:options:attributes:]
  • Next by thread: [ANN] Snow Leopard Location Manager sample code
  • Index(es):
    • Date
    • Thread