Skip to content

Instantly share code, notes, and snippets.

View gamenerds's full-sized avatar

Alex Novosad gamenerds

View GitHub Profile
@gamenerds
gamenerds / NSPointerArray+AbstractionHelpers.h
Last active September 17, 2019 12:49
A category to abstract the details of NSPointerArray
#import <Foundation/Foundation.h>
// This helps deal with NSPointerArray that stores pointers to objects that inherit from NSObject.
// Not sure if this will work for other pointer types!!
@interface NSPointerArray (Helpers)
/**
* Adds pointer to the given object to the array.
*
* @param object Object whose pointer needs to be added to the array.