News for hackers. Stuff that matters.
Re:Cargo-cult typing, or: Objective-C's default type is id by seivan on Wednesday March 05, 2014 @02:31PM (#7349220)
You could always use instancetype to indicate that you're getting an instance of the class back.

  @interface NSArray (XXHelpers)
  -(instancetype)reverse;
  @end
or even better

  @protocol XXReversing <NSObject>
  @required
  -(instancetype)reverse;
  @end

  @interface NSArray (XXHelpers)
  <XXReversing>
  @end

  @interface NSOrderedSet (XXHelpers)
  <XXReversing>
  @end

There are no comments on this comment yet.