• 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: NSTextField not updated during large process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField not updated during large process


  • Subject: Re: NSTextField not updated during large process
  • From: Kyle Sluder <email@hidden>
  • Date: Sun, 14 Oct 2012 13:34:06 -0700

On Sun, Oct 14, 2012, at 12:29 PM, Koen van der Drift wrote:
> Even if I use:
>
> - (void)updateStatus: (NSString *)status
> {
>     [statusTextField performSelectorOnMainThread:@selector(
>     setStringValue:) withObject: status waitUntilDone: NO];  // or YES
> }
>
> the field does not get updated.

Okay, at this point you need to step back a bit and actually work
through your threading architecture. The first question to ask yourself
is whether you actually understand multithreading. The second question
to ask is whether you actually understand how your code is using it.

That might mean breaking out the whiteboard, drawing a timeline, and
going through your code with a fine-toothed comb to mark down every
possible context switch.

But right now you're thrashing, and you're not going to find a solution
that way.

--Kyle Sluder
_______________________________________________

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: NSTextField not updated during large process
      • From: Koen van der Drift <email@hidden>
References: 
 >Re: NSTextField not updated during large process (From: Koen van der Drift <email@hidden>)
 >Re: NSTextField not updated during large process (From: Koen van der Drift <email@hidden>)
 >Re: NSTextField not updated during large process (From: Mike Abdullah <email@hidden>)
 >Re: NSTextField not updated during large process (From: Koen van der Drift <email@hidden>)
 >Re: NSTextField not updated during large process (From: Koen van der Drift <email@hidden>)
 >Re: NSTextField not updated during large process (From: Mike Abdullah <email@hidden>)
 >Re: NSTextField not updated during large process (From: Koen van der Drift <email@hidden>)

  • Prev by Date: Re: Plus sign key equivalent.
  • Next by Date: Re: NSTextField not updated during large process
  • Previous by thread: Re: NSTextField not updated during large process
  • Next by thread: Re: NSTextField not updated during large process
  • Index(es):
    • Date
    • Thread