Hi Richard,

The advice you've received already is more sound than what I'm about to tell 
you.  But my crude technique has solved the problem you mention and similar 
problems.  

I wrote the following class method on a utility class into which I throw stuff:

+ (void)
waitUntilEndOfNextRunLoop
{
        [[NSRunLoop mainRunLoop] runUntilDate:[NSDate distantPast]];  // finish 
current iteration
        [[NSRunLoop mainRunLoop] runUntilDate:[NSDate distantPast]];  // once 
more so selection updates
}

Whenever I have a problem like the one you mention, I invoke that method and 
all is well.  I confess, I invoke it right and left.  I has no effect on 
performance that I can notice.  But its far from pretty.

Cheers,

Steve

_______________________________________________

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 arch...@mail-archive.com

Reply via email to