On Jun 2, 2012, at 12:32 PM, Markus Spoettl wrote:

>> Who said anything about order?
> 
> The OP did:
> 
>> Is there a way to add operations to the queue so that they "jump the queue" 
>> ahead of any operations that are not running and have not been run yet?

That statement isn’t expressing a desire for strict LIFO order; he just wants 
some operations to jump ahead of the rest. This can be done by giving those 
operations a higher priority.

If I have eight operations A, B, C, D, E, F, G, H, and I want A, B and C to run 
first (because they correspond to on-screen objects), then I don’t really care 
if the order is:

ABCDEFGH
CBAHGFED
BACFDHEG

etc.

These orders are all equivalent in practical terms. What’s important is that A, 
B, and C get finished before D, E, F, G, and H.

Charles

_______________________________________________

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