• 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
Re: How To Design A Queue of Messages?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How To Design A Queue of Messages?
      • From: Jerry Krinock <email@hidden>
References: 
 >How To Design A Queue of Messages? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: NSArrayController and tables: the "All" item and indirect relationship sets
  • Next by Date: Re: How To Design A Queue of Messages?
  • Previous by thread: Re: How To Design A Queue of Messages?
  • Next by thread: Re: How To Design A Queue of Messages?
  • Index(es):
    • Date
    • Thread