There is no default equivalent for NSMutableArray , but I think you can easily add a category to it to pop up to. Something like this is possible:
NSMutableArray + Queue.h
@interface NSMutableArray (Queue) -(id)pop; @end
NSMutableArray + Queue.m
Then import it and use it as follows:
#import "NSMutableArray+Queue.h" ... id lastOne = [myArray pop];
source share