Skip to content

Instantly share code, notes, and snippets.

6/29/09 4:05:10 PM GrowlHelperApp[4099] *** attempt to pop an unknown autorelease pool (0x18b9200)
6/29/09 4:05:31 PM GrowlHelperApp[4099] *** __NSAutoreleaseNoPool(): Object 0x2e33a60 of class NSCFArray autoreleased with no pool in place - just leaking
6/29/09 4:05:36 PM GrowlHelperApp[4099] *** __NSAutoreleaseNoPool(): Object 0xda12f30 of class NSCFArray autoreleased with no pool in place - just leaking
6/29/09 4:06:37 PM GrowlHelperApp[4099] *** __NSAutoreleaseNoPool(): Object 0x40de20 of class NSCFString autoreleased with no pool in place - just leaking
6/29/09 4:06:37 PM GrowlHelperApp[4099] *** __NSAutoreleaseNoPool(): Object 0x40dee0 of class NSCFString autoreleased with no pool in place - just leaking
6/29/09 4:06:37 PM GrowlHelperApp[4099] *** __NSAutoreleaseNoPool(): Object 0x2e192f0 of class NSCFDictionary autoreleased with no pool in place - just leaking
6/29/09 4:06:37 PM GrowlHelperApp[4099] *** __NSAutoreleaseNoPool(): Object 0x2e0a390 of class NSCFString autoreleased with no pool in place - ju
/Volumes/case_insensitive/Steam.app/Contents/MacOS/osx32> ./steam (44e) bootstrap_look_up: (os/kern) unknown error code (44e)
steam executable via in process memory: '/Volumes/case_insensitive/Steam.app/Contents/MacOS/osx32/.'
Unable to locate one or both of:
'/Volumes/case_insensitive/Steam.app/Contents/MacOS/osx32/./breakpad_inspector'
'/Volumes/case_insensitive/Steam.app/Contents/MacOS/osx32/./breakpad_crash_report_sender'
Crash Uploading will not function.
@mlaster
mlaster / gist:2783845
Last active October 5, 2015 09:07
animating UITableView updates
- (void)animateUpdateFromOldList:(NSArray *)oldList newList:(NSArray *)newList {
NSMutableArray *workArray = [oldList mutableCopy];
NSMutableSet *oldSet = [[NSMutableSet alloc] initWithArray:oldList];
NSMutableSet *newSet = [[NSMutableSet alloc] initWithArray:newList];
NSMutableSet *deleteSet = nil;
NSMutableSet *insertSet = nil;
static NSInteger offset = 0;
deleteSet = [oldSet mutableCopy];
[deleteSet minusSet:newSet];
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update (2) must be equal to the number of rows contained in that section before the update (2), plus or minus the number of rows inserted or deleted from that section (0 inserted, 1 deleted) and plus or minus the number of rows moved into or out of that section (0 moved in, 0 moved out).'
@mlaster
mlaster / gist:2784243
Created May 24, 2012 21:07
UITableView animation
- (void)animateTableViewUpdate:(UITableView *)inTableView FromOldList:(NSArray *)oldList newList:(NSArray *)newList comparisionKey:(NSString *)inKey {
NSMutableDictionary *oldMap = [NSMutableDictionary dictionary];
NSMutableDictionary *newMap = [NSMutableDictionary dictionary];
NSMutableSet *oldSet = [NSMutableSet set];
NSMutableSet *newSet = [NSMutableSet set];
NSMutableSet *deleteSet = nil;
NSMutableSet *insertSet = nil;
static NSInteger offset = 0;
@mlaster
mlaster / gist:2854189
Created June 1, 2012 18:25
Decode provisioning profile
#!/usr/bin/env ruby
require 'rubygems'
require 'openssl'
begin
gem 'plist', '~> 3.1.0'
require 'plist'
rescue Gem::LoadError
- (CAAnimation *)rotationAnimation {
CABasicAnimation *rotation = [CABasicAnimation animationWithKeyPath:@"transform"];
rotation.valueFunction = [CAValueFunction functionWithName:kCAValueFunctionRotateZ];
rotation.fromValue = [NSNumber numberWithFloat:0.0];
rotation.toValue = [NSNumber numberWithFloat:M_PI * 2];
rotation.duration = 2.0f;
rotation.repeatCount = INFINITY;
rotation.removedOnCompletion = NO;
@mlaster
mlaster / gist:3752316
Created September 19, 2012 21:16
Handling unreadable CoreData storage
- (NSPersistentStoreCoordinator *)persistentStoreCoordinator {
if (__persistentStoreCoordinator != nil) {
return __persistentStoreCoordinator;
}
NSURL *storeURL = [[self applicationDocumentsDirectory] URLByAppendingPathComponent:@"database.sqlite"];
NSError *error = nil;
@try {
__persistentStoreCoordinator = [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel:self.managedObjectModel];
- (void)viewWillAppear:(BOOL)animated {
CIFilter *filter = nil;
filter = [CIFilter filterWithName:@"CIGaussianBlur" keysAndValues:@"inputRadius", @50.0, nil];
self.view.layer.backgroundFilters = @[filter];
[super viewWillAppear:animated];
}
@mlaster
mlaster / gist:3895770
Created October 15, 2012 21:47
NSString and character composition
- (BOOL)textView:(UITextView *)inTextView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text {
BOOL retValue = NO;
NSUInteger newCharCount = [[inTextView text] length] - range.length + [text length];
NSMutableString *newString = [[inTextView text] mutableCopy];
[newString appendString:text];
NSLog(@"newString: [%@]", newString);
NSLog(@"original newCharCount: %ld", (long)newCharCount);
newCharCount = [newString length];