Does the iOS SDK provide queues and stacks?
I'm writing an iPhone app, and I'm surprised that there seem to be no NSQueue or NSStack classes in Apple's Foundation Framework . I see that it would be quite easy to roll my own, starting with an NSMutableArray , so I'll do that unless I've missed something. Have I missed something? as far as I know there is no generic class avaialbe. Try using the NSMutableArray, add via addObject and get first/last via objectAtIndex and removeObjectAtIndex. Tommy Herbert Here's my Stack class, in case it's useful to those who come after me. As you can see, the pop method involves enough code that you'd