Tom Whipple

Notes

Some information I have found useful, presented direct from my brain. This is probably more useful to me than to anyone else. I might put it here or as a sub-page (see link to the right).

In progress:  Wavelets

Some of the subpages of this category have been moved to posts, as that seems to be a better format.

A Handy Core Data Recipe

- (BOOL) saveObjectContext {
	NSError* error;
	BOOL wasSuccesful = [objectContext save:&error];
	if(!wasSuccesful) {
		NSLog(@"Failed to save to data store: %@", [error localizedDescription]);
		NSArray* detailedErrors = [[error userInfo] objectForKey:NSDetailedErrorsKey];
		if(detailedErrors != nil && [detailedErrors count] > 0) {
			for(NSError* detailedError in detailedErrors) {
				NSLog(@"  DetailedError: %@", [detailedError userInfo]);
			}
		}
		else {
			NSLog(@"  %@", [error userInfo]);
		}
	}
	return wasSuccesful;
}

mail@tomwhipple.com
612-220-1465