dispatch queues and KVO?
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