• 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: Joar Wingfors <email@hidden>
  • Date: Sun, 31 May 2009 16:26:20 -0700


On 31 maj 2009, at 16.08, Seth Willits wrote:

On May 31, 2009, at 3:49 PM, Joar Wingfors 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 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?

Only if clicking on a button is not thread-safe. :-\\ That's the only way this code could be triggered.


I was not thinking so much about the snippet of code that you posted, I was more curious to know if you have something else running in the background in your app, updating your UI / model in a non-thread safe way. So to rephrase the question: Are you doing any background work in your app at all, and if so, how sure are you that you're doing that in a thread safe way?

If you come to the conclusion that this is more likely to be a bug in AppKit than in your code, please file a bug report!

	<http://developer.apple.com/BugReporter/>

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


References: 
 >NSAttributedString -size Crash (From: Seth Willits <email@hidden>)
 >Re: NSAttributedString -size Crash (From: Joar Wingfors <email@hidden>)
 >Re: NSAttributedString -size Crash (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: NSAttributedString -size Crash
  • Next by Date: Re: NSTableViewSelectionHighlightStyleSourceList interferes with custom NSBrowserCell drawing
  • Previous by thread: Re: NSAttributedString -size Crash
  • Next by thread: Re: NSAttributedString -size Crash
  • Index(es):
    • Date
    • Thread