Tag Archives: Cocoa
Grab that Invocation
CInvocationGrabber is a Cocoa class to help with creating NSInvocation objects. NSInvocation objects are Cocoa’s equivalent of “functors” and are extremely handy. But unfortunately creating them is often a pain. For example, take the following code showing how to create … Continue reading
Toxic Progress Indicator Updated
Thanks to Daniel Jalkut for submitting a patch to Toxic Progress Indicator. The patches fixes a couple of silly bugs with setMinValue/setMaxValue and also makes the code a little bit more generic. I’ve updated subversion with the patch, which is … Continue reading
Cocoa: Fetching all attachments from an NSAttributedString
This code snippet is a category of NSAttributedString that shows how to fetch all attachments from the string. Header: @interface NSAttributedString (NSAttributedString_MoreExtensions) /** * @method allAttachments * @abstract Fetchs all attachments from an NSAttributedString. * @discussion This method searchs for … Continue reading
