• 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
dispatch queues and KVO?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dispatch queues and KVO?


  • Subject: dispatch queues and KVO?
  • From: Todd Heberlein <email@hidden>
  • Date: Tue, 15 Oct 2013 13:43:05 -0700

I have an AppDelegate with several ivars that need to be changed by code running out of dispatch queues. Should the setting of these values (because of KVO maybe?) be done by putting a block on dispatch_get_main_queue() and change the ivar there? For example, is the following

dispatch_async(dispatch_get_main_queue(), ^{
	self.some_ivar = some_value;
});

the right design pattern?

Thanks,

Todd


_______________________________________________

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: dispatch queues and KVO?
      • From: Seth Willits <email@hidden>
  • Prev by Date: Re: Cocoa class extension best practice
  • Next by Date: Re: Cocoa class extension best practice
  • Previous by thread: Re: Cocoa class extension best practice
  • Next by thread: Re: dispatch queues and KVO?
  • Index(es):
    • Date
    • Thread