Ei kuvausta

NSArray+AWSMTLManipulationAdditions.h 888B

12345678910111213141516171819202122232425262728
  1. //
  2. // NSArray+MTLManipulationAdditions.h
  3. // Mantle
  4. //
  5. // Created by Josh Abernathy on 9/19/12.
  6. // Copyright (c) 2012 GitHub. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @interface NSArray (AWSMTLManipulationAdditions)
  10. // The first object in the array or nil if the array is empty.
  11. // Forwards to `firstObject` which has been first declared in iOS7, but works with iOS4/10.6.
  12. @property (nonatomic, readonly, strong) id awsmtl_firstObject;
  13. // Returns a new array without all instances of the given object.
  14. - (NSArray *)awsmtl_arrayByRemovingObject:(id)object;
  15. // Returns a new array without the first object. If the array is empty, it
  16. // returns the empty array.
  17. - (NSArray *)awsmtl_arrayByRemovingFirstObject;
  18. // Returns a new array without the last object. If the array is empty, it
  19. // returns the empty array.
  20. - (NSArray *)awsmtl_arrayByRemovingLastObject;
  21. @end