This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
range: {0, 0} | |
newString: [ㅅ] | |
original newCharCount: 1 | |
new newCharCount: 1 | |
count: 1 graphemeCount: 1 | |
range: {1, 0} | |
newString: [ㅅㅅ] | |
original newCharCount: 2 | |
new newCharCount: 2 | |
count: 1 graphemeCount: 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)viewWillAppear:(BOOL)animated { | |
CIFilter *filter = nil; | |
filter = [CIFilter filterWithName:@"CIGaussianBlur" keysAndValues:@"inputRadius", @50.0, nil]; | |
self.view.layer.backgroundFilters = @[filter]; | |
[super viewWillAppear:animated]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (NSPersistentStoreCoordinator *)persistentStoreCoordinator { | |
if (__persistentStoreCoordinator != nil) { | |
return __persistentStoreCoordinator; | |
} | |
NSURL *storeURL = [[self applicationDocumentsDirectory] URLByAppendingPathComponent:@"database.sqlite"]; | |
NSError *error = nil; | |
@try { | |
__persistentStoreCoordinator = [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel:self.managedObjectModel]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'openssl' | |
begin | |
gem 'plist', '~> 3.1.0' | |
require 'plist' | |
rescue Gem::LoadError |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** 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).' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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. |