Masking UIImages (yes, again)

2011-06-26 Thread James Miller
I've been reading and experimenting and browsing and reading and experimenting but mostly failing miserably here and I need to ask the hive mind for some assistance. In a nutshell, I'm just trying to take a range of white colors out of a UIImage and make those colors transparent. From what I've

Re: NSImageViews, Block Animation and Frame by Frame Image Swapping

2010-09-15 Thread James Miller
Great. That helps. So can you point me to a technical note with an overview and/or examples of the new block based animations? On Sep 15, 2010, at 9:56 AM, David Duncan wrote: > On Sep 14, 2010, at 9:42 PM, James Miller wrote: > >> With Apple recommending block-based animation of

NSImageViews, Block Animation and Frame by Frame Image Swapping

2010-09-14 Thread James Miller
With Apple recommending block-based animation of UIImageViews, I'm not quite grasping how to take older frame-by-frame animation code like this: NSArray *playerImagesRight = [NSArray arrayWithObjects: [UIImage imageNamed:@"p1.png"], [UIImage imageNamed:@"p2.png"],[UIImage imageNamed:@"p3.png"],

AVAudioPlayer lags (and not from instantiating it)

2010-08-28 Thread James Miller
I have an AVAudioPlayer-based sound that is instantiated early in my code (getting the "big pause" out of the way), but have noticed that when I play my sound (less than a second in length) within my NSTimer loop, all my animation (also controlled in the loop) pauses for a few milliseconds, crea

stringByReplacingCharactersInRange leading to bus error

2010-08-17 Thread James Miller
Hello. I'm a little new to Objective-C / Cocoa so please don't shoot me, but I've been looking around for a few hours and can't seem to figure out what I'm doing wrong on my own and could use a second/third/fourth set of eyes. I have NSTimer that runs several times a second against an NSString