NSAttributedString "size" method strangeness
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.