Hi Bob at [EMAIL PROTECTED] (Thomas Davie) On 25/5/08, Thomas Davie wrote:
I hate to say this, but any form of delay here is the *wrong* way to do this. You already know you have a race condition, all you're doing is making it so the race condition will work out in your favor 99.99% of the time. There are still exceptional cases where the OS will be busy doing something and your 0.1 second sleep will not be enough to sort it out.
Excellent point.
Instead of doing this, do your threading properly, and get your locking right.
What you say makes a lot of sense. I'd certainly be interested in any specifics. I confess to having no idea what it would mean to 'get [my] locking right' in this scenario (repeated below).
Thanks, Steve
when I send a fetch message to an NSArrayController, it sometimes takes a fraction of a second for its selection to become valid.
_______________________________________________ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]