removeFirstObject for NSMutableArray

Originator:jacopo
Number:rdar://14342464 Date Originated:03-Jul-2013 11:00 AM
Status:Open Resolved:
Product:iOS SDK Product Version:7.0
Classification:Feature (New) Reproducible:N/A
 
Summary:

In iOS 7 is introduced the firstObject in the NSArray class. On the same wave in the NSMutableArray it would be nice if is going to be added a removeFirstObject that works similar to removeLastObject.

Steps to Reproduce:

If I want to remove the first object in a NSMutableArray now I have to type [mutableArray removeObjectAtIndex:0] or a much verbose and secure mode (if firstObject not return nil) [mutableArray removeObject:[mutableArray firstObject]].

Its a small addition but make the code easier to read and Obj-C is the nicest code to read so, why not?

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!