A collection of my "this'd be cool to have" work.
- flipToShowWindow:forward:
: Animates a flip between this window and another window. Straightforward, the way it should be.
- associateWithObject:forKey: and friends
: Creates a runtime link with the given object, via the given key object. Typically, the key is avoid *
set up withdeclareRuntimeAssociationKey()
.- associatedObjectForKey:
: Gets the object linked via the given key. This key was set with an association, and is typically gotten withruntimeAssociationKey()
.- dissassociateWithObjectForKey: and friends
: Breaks a runtime link.
declareRuntimeAssociationKey()
: Declares a static void *
for the association key.
runtimeAssociationKey()
: Gets the static void *
association key.
$()
: Makes an object out of the given value.
- arrayByComprehendingWithBlock:
: Creates a new array with the return value of the block, executed for each element in the array.nil
values will be skipped.- dictionaryByComprehendingWithBlock:
: Creates a new dictionary with the return value of the block, executed for each key in the dictionary.nil
values will be skipped.-setByComprehendingWithBlock:
: Creates a new set with the return value of the block, executed for each element in the set.nil
values will be skipped.-isIn:
: ReturnsYES
if the object is in the given container.-areIn:
: ReturnsYES
if all of the objects in this container object are in the given container.
-
- isJSONSerializable
: ReturnsYES
if the object is a valid JSON object. -
- JSONSerialize
: Returns a string of JSON, which represents a dictionary of this object's property name - property value pairs. -
- JSONRepresentation
: Returns a string of JSON, which represents this object. -
- JSONDumpWithBlock: and friends
: Returns a string of JSON, which represents the object returned from the block, selector, etc. -
- JSONValue
: Returns a valid JSON object, parsed from this string.