Re: How To Design A Queue of Messages?
Re: How To Design A Queue of Messages?
- Subject: Re: How To Design A Queue of Messages?
- From: Pontus Ilbring <email@hidden>
- Date: Sat, 10 Sep 2005 16:40:17 +0200
On 9/10/05, Jerry Krinock <email@hidden> wrote:
> 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.
NSInvocations, though somewhat inconvenient to create, should be
sufficient for this. Could you describe the problems you have with
them?
_______________________________________________
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