• 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
Cocoa class for queuing operations?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa class for queuing operations?


  • Subject: Cocoa class for queuing operations?
  • From: Jonathan del Strother <email@hidden>
  • Date: Thu, 14 Jul 2005 22:26:40 +0100

I wrote a texture loading class for my current project that sits in a separate thread, loading textures (duh). The main application sends a request for a new texture, I lock the queue, push the texture request onto the end, and unlock the queue. Meanwhile, the texture loader loops round and round, finds the next texture to load, loads it, removes it from the queue, and moves onto the next...

Today I started writing some code to queue up requests to send off to Amazon, and it occurred to me that I was writing pretty much the same code as my texture loader, and it must be a pretty common thing - there are uses for procedures like this all over the place.

So, I was wondering if there was a generic Cocoa class that already existed that I should be using... I've been searching the docs without finding anything, but I've duplicated whole swaths of pre- existing Cocoa code before, so was wondering if I'd missed anything.

Anyone?

Jon
_______________________________________________
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: Cocoa class for queuing operations?
      • From: Sherm Pendley <email@hidden>
    • Re: Cocoa class for queuing operations?
      • From: Jonathon Mah <email@hidden>
  • Prev by Date: Re: Multiple pasteboard items
  • Next by Date: Re: NSMenu menu items on the fly problem
  • Previous by thread: Re: Subclassing NSColorWell?
  • Next by thread: Re: Cocoa class for queuing operations?
  • Index(es):
    • Date
    • Thread