• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How To Design A Queue of Messages?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How To Design A Queue of Messages?
      • From: Tommy Nordgren <email@hidden>
    • Re: How To Design A Queue of Messages?
      • From: Pontus Ilbring <email@hidden>
    • Re: How To Design A Queue of Messages?
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: Re: Tracking Rect problem.
  • Next by Date: Re: nstimer not firing?
  • Previous by thread: Re: Simple little question
  • Next by thread: Re: How To Design A Queue of Messages?
  • Index(es):
    • Date
    • Thread