• 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
NSAttributedString "size" method strangeness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSAttributedString "size" method strangeness


  • Subject: NSAttributedString "size" method strangeness
  • From: Leon McNeill <email@hidden>
  • Date: Mon, 10 Mar 2003 09:29:31 +0000

I rely upon the NSAttributedString "- (NSSize) size" method heavily, but have been getting unusual results sometimes. Some strings return a size.width of 4,194,304 (2^22), which I'd like to believe is some kind of error value like NSYourStringIsBrokenDude. I am applying standard and custom attributes to my strings, and I'm thinking this obscene size result is supposed to be telling me something specific.

I'm going to narrow down exactly under what circumstances this value is returned, but I haven't found any reference to this value in the headers as a constant or otherwise, and the documentation for this method is ultra-scant. Anyone know what this value means?

--
Leon McNeill
Softchaos Ltd.
email@hidden
www.softchaos.com
_______________________________________________
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.

  • Prev by Date: Re: Code for parsing Objective-C files?
  • Next by Date: Help - what happened to my menu?
  • Previous by thread: Re: vCal utility/framework?
  • Next by thread: Using dynamic library without setting environment variables
  • Index(es):
    • Date
    • Thread