• 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: Mike Abdullah <email@hidden>
  • Date: Sun, 14 Oct 2012 20:04:13 +0100

On 12 Oct 2012, at 23:55, Koen van der Drift <email@hidden> wrote:

>
> Man, I thought I had this all working, and after a few days of doing other stuff, it is back to my original issue.  I am now updating my textfield as follows, so no matter from where it is called, it will always be updated on the main thread:
>
> - (void)updateStatus: (NSString *)status
> {
>    NSLog(@"%@", status);
>    [self performSelectorOnMainThread:@selector( updateStatusWrapper:) withObject: status waitUntilDone: YES];
> }
>
> -(void)updateStatusWrapper: (NSString *) status
> {
>    self.progressStatus = status;
> }
>
> Again, all the logs get displayed, so I know updateStatus: is called, but again, in the parseData part, the string is not updated. For whatever reason, updateStatusWrapper: doesn't get called. I also tried YES and NO for waitUntilDone.

How did you determine that -updateStatusWrapper: doesn't get called?

(You could do away with that method entirely BTW, and just use setProgressStatus: as the selector)

You're updating a property of self. How does that then update the text field?


_______________________________________________

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>)

  • Prev by Date: Re: filtering an array of entities using NSPredicate
  • Next by Date: Plus sign key equivalent.
  • Previous by thread: Re: NSTextField not updated during large process
  • Next by thread: Re: NSTextField not updated during large process
  • Index(es):
    • Date
    • Thread