• 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: Threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Threads


  • Subject: Re: Threads
  • From: koko <email@hidden>
  • Date: Fri, 19 Jul 2013 14:09:43 -0600

On Jul 19, 2013, at 1:48 PM, Fritz Anderson <email@hidden> wrote:

> Use an NSOperation, or -performSelectorOnMainThread: (you'll have to wrap the call in your own method), or dispatch_[a]sync() to do it on the main thread.

So are you saying that in the following code:

- (void)setNeedsDisplayWrapper:(BOOL)value
{
    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^
    {
        [self setNeedsDisplay:value];

        dispatch_async(dispatch_get_main_queue(), ^
        {
            NSLog(@"completion");
        });
    });
}


All calls made by Cocoa to display the view will be done a separate thread?


-koko
_______________________________________________

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: Threads
      • From: Fritz Anderson <email@hidden>
    • Re: Threads
      • From: Graham Cox <email@hidden>
    • Re: Threads
      • From: Scott Ribe <email@hidden>
References: 
 >Threads (From: koko <email@hidden>)
 >Re: Threads (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: height of UITableView with exactly two rows
  • Next by Date: Re: UIScrollView to UIImage
  • Previous by thread: Re: Threads
  • Next by thread: Re: Threads
  • Index(es):
    • Date
    • Thread