> I am relying on the binding messages to complete before the > target-action message - is this an OK idea?
It sounds like you already know the answer to that. It's likely not worth the trouble of trying to straighten out the race condition, when you can just dodge the problem entirely and use KVO, as Kyle suggested. If you find KVO overly ugly, there are wrappers around it, such as one provided by Mike Ash (see http://www.mikeash.com/?page=pyblog/key-value-observing-done-right.html; the code itself is available both at http://mikeash.com/svn/MAKVONotificationCenter/ and through GTM at http://code.google.com/p/google-toolbox-for-mac/source/browse/trunk/Foundation/GTMNSObject%2BKeyValueObserving.m). —Jeremy On Wed, Apr 15, 2009 at 11:26 PM, Kyle Sluder <[email protected]> wrote: > On Wed, Apr 15, 2009 at 3:04 PM, Jeff Hutchison > <[email protected]> wrote: >> I am relying on the binding messages to complete before the >> target-action message - is this an OK idea? > > Why not just register as an observer of the bound property? > > --Kyle Sluder > _______________________________________________ > > Cocoa-dev mailing list ([email protected]) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/jeremyw.sherman%40gmail.com > > This email sent to [email protected] > _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
