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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to