I’ve improved my Cocoa Sequence Grabber code (read: iSight code). I’ve added a couple of extra classes to represent audio and video channels. Gone are the dependencies on my MoreFile framework and some of my other Cocoa/Carbon utility classes (making the project more lightweight). I’ve improved the code all round - but the key addition [...]
Sequence Grabber Code - now with CoreGoodness
August 8th, 2005 · Comments · Default
Tags:CoreImage·corevideo·isight·quicktime·sequence grabber·Source Code·toxicmedia
Sequence Grabber Cocoa Source Code
November 22nd, 2004 · Comments · Default
Cocoa source code showing how to use a QuickTime Sequence Grabber (e.g. an iSight camera) from your Cocoa application.
Update. I’ve uploaded a new version of the SequenceGrabber source code that should compile cleanly on any Mac OS X 10.3 machine. Thanks to “jlecuyer” for pointing out the original version was broken.
Update: Information on new version [...]
Tags:CoreImage·corevideo·Headline·isight·quicktime·sequence grabber·Source Code·toxicmedia
Cocoa: Fetching all attachments from an NSAttributedString
November 27th, 2003 · Comments · Default
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 NSAttachmentAttributeName attributes within the string instead of searching for NSAttachmentCharacter characters. */ - (NSArray *)allAttachments;
@end
Source:
@implementation [...]