• 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: Crash in NSControl's sizeToFit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash in NSControl's sizeToFit


  • Subject: Re: Crash in NSControl's sizeToFit
  • From: "email@hidden" <email@hidden>
  • Date: Mon, 1 Feb 2010 17:16:05 +0100

Quick followup: is it safe to set the token field's object value from
the background thread, or do I need to do it on the main thread as
well? Or to put it in more general terms: are _all_ calls to AppKit
from a background thread disallowed, or only those regarding updating
the UI?

Also, is it thread-safe to bracket the sizeToFit method between
lockFocusIfCanDraw and unlockFocus, rather than performing the
resizing on the main thread?

Thanks.

On Mon, Feb 1, 2010 at 9:21 AM, email@hidden
<email@hidden> wrote:
> On Mon, Feb 1, 2010 at 6:55 AM, Jens Alfke <email@hidden> wrote:
>>
>> On Jan 31, 2010, at 7:39 AM, email@hidden wrote:
>>
>>> This looks like a bug in AppKit but I'm not sure. Any ideas? (I cannot
>>> reproduce the problem.)
>>
>> No, it's a bug in 'myProject' — it's calling AppKit from a background thread, which is generally not allowed:
>
> Ah, right! Of course. Thank you.
>
_______________________________________________

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

  • Follow-Ups:
    • Re: Crash in NSControl's sizeToFit
      • From: Kyle Sluder <email@hidden>
    • Re: Crash in NSControl's sizeToFit
      • From: Joar Wingfors <email@hidden>
References: 
 >Re: Crash in NSControl's sizeToFit (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: Why can't I use any object as a key in a dictionary?
  • Next by Date: Re: Weird Parsed HTML string into NSXMLDocument
  • Previous by thread: Re: Crash in NSControl's sizeToFit
  • Next by thread: Re: Crash in NSControl's sizeToFit
  • Index(es):
    • Date
    • Thread