Re: NSAttributedString -size Crash
Re: NSAttributedString -size Crash
- Subject: Re: NSAttributedString -size Crash
- From: Joar Wingfors <email@hidden>
- Date: Sun, 31 May 2009 15:49:13 -0700
On 31 maj 2009, at 15.36, Seth Willits wrote:
For some reason that I have yet to discover, calling -
[NSAttributedString size] is causing a crash. It's rare, but it's
happening. I can't yet repeat it on my system.
<snip>
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 the string. The only thing I can think of is
that this drawing and call to -size is happening while the window is
resizing caused by a simple call to -[NSWindow
setFrame:display:animate:].
Is it at all possible that this is the result of some sort of thread
unsafe operation in your app?
j o a r
_______________________________________________
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