How To Design A Queue of Messages?
How To Design A Queue of Messages?
- Subject: How To Design A Queue of Messages?
- From: Jerry Krinock <email@hidden>
- Date: Sat, 10 Sep 2005 05:47:48 -0700
I would like to make a first-in, first-out queue of tasks to be performed.
The tasks are different messages to different objects. To me, the natural
method is to somehow pack each task into an NSDictionary, and then add it to
an NSMutableArray, which is my "queue".
Is it possible to do such a thing, or is there a better way? If so, what
object(s) should/can I pass through the NSDictionary to represent each task?
I've been trying NSInvocations and NSMethodSignatures in various ways, but
to make a long story short, these things don't always seem to behave like
normal objects, and I've not been able to make anything work.
My tasks/messages have no arguments and no return values, so that should
simplify things a little. Also, it seems straightforward to manage this
queue and schedule the tasks, if I can just get them in and out of my queue!
Jerry Krinock
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden