• 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: Fixing logged error that doesn't throw exception [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fixing logged error that doesn't throw exception [SOLVED]


  • Subject: Re: Fixing logged error that doesn't throw exception [SOLVED]
  • From: Graham Cox <email@hidden>
  • Date: Thu, 28 May 2009 12:22:37 +1000


On 28/05/2009, at 12:04 PM, Graham Cox wrote:

The only field I have in the toolbar is a search field - looks entirely standard as far as I can see.

#0 0x93d221e6 in -[NSConcreteAttributedString initWithString:]
#1 0x93d220eb in -[NSConcreteAttributedString initWithString:attributes:]
#2 0x93d3c673 in -[NSNumberFormatter(NSNumberFormatterCompatibility) attributedStringForZero]


Right, found the problem. It was sort of my fault (did anyone expect anything else?) but then again maybe not. Turns out there was another field in the toolbar with an attached formatter that I'd overlooked, and its fields for zero and nil were not set up. This is the default state for a formatter when you add one in IB. But it seems that these entries MUST be there to avoid this error if the formatter lives inside a toolbar item.

Would be nice if a formatter (or IB) would initialise these fields to something valid.

Should I log this as a framework/IB bug, or did I have it coming to me?

--Graham
_______________________________________________

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: 
 >Fixing logged error that doesn't throw exception (From: Graham Cox <email@hidden>)
 >Re: Fixing logged error that doesn't throw exception (From: Ken Thomases <email@hidden>)
 >Re: Fixing logged error that doesn't throw exception (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Fixing logged error that doesn't throw exception
  • Next by Date: Re: Wacky Text View Glyph Rending Bug
  • Previous by thread: Re: Fixing logged error that doesn't throw exception
  • Next by thread: NSValueTransformer/Cocoa Bindings question
  • Index(es):
    • Date
    • Thread