• 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: NSAttributedString -size Crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAttributedString -size Crash


  • Subject: Re: NSAttributedString -size Crash
  • From: Kyle Sluder <email@hidden>
  • Date: Sun, 31 May 2009 15:45:02 -0700

On Sun, May 31, 2009 at 3:36 PM, Seth Willits <email@hidden> wrote:
> If [self title] were nil, I'd get an exception when creating the attributed
> string, not a crash when calling -size. There's nothing fancy going on with

Not on Leopard you don't.  You do get a warning, but not an exception.
 This is the warning:

-[NSConcreteAttributedString initWithString:] called with nil string
argument. This has undefined behavior and will raise an exception in
post-Leopard linked apps. This warning is displayed only once.

--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: 
 >NSAttributedString -size Crash (From: Seth Willits <email@hidden>)

  • Prev by Date: NSAttributedString -size Crash
  • Next by Date: Re: Several Questions
  • Previous by thread: NSAttributedString -size Crash
  • Next by thread: Re: NSAttributedString -size Crash
  • Index(es):
    • Date
    • Thread