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
| if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { | |
| setupForiPad(); | |
| }else{ | |
| setupForiPhone(); | |
| } |
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
| // this is where schemes are saved, so they can be created and saved automagically ;) | |
| -(void) schemeWasCreated:(NSNotification*) notification | |
| { | |
| NSDictionary* dict = [notification userInfo]; | |
| PHColorScheme* createdScheme = dict[@"createdScheme"]; | |
| DLog(@"detected scheme creation for %@", [createdScheme name]); | |
| // assume no dupes exist |
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
| // this is where schemes are saved, so they can be created and saved automagically ;) | |
| -(void) schemeWasCreated:(NSNotification*) notification | |
| { | |
| NSDictionary* dict = [notification userInfo]; | |
| PHColorScheme* createdScheme = dict[@"createdScheme"]; | |
| DLog(@"detected scheme creation for %@", [createdScheme name]); | |
| // assume no dupes exist |
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
| - (NSString *) findUniqueSaveNameForSchemeName:(NSString*)pathString | |
| { | |
| int i = 1; | |
| NSString *path; | |
| do { | |
| // iterate until a name does not match an existing file | |
| path = [NSString stringWithFormat:@"%@ %i",[pathString stringByDeletingPathExtension] , i++]; | |
| } while ([[NSFileManager defaultManager] fileExistsAtPath:path]); | |
| return path; |
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
| // | |
| // PHColorSchemeManager.m | |
| // TrigPad | |
| // | |
| // Created by Jimmy Hough Jr on 3/9/11. | |
| // Copyright 2011 PH Systems/Motech. All rights reserved. | |
| // | |
| #import "PHColorSchemeManager.h" |
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
| - (UITableViewCell *)tableView:(UITableView *)tableView | |
| cellForRowAtIndexPath:(NSIndexPath *)indexPath | |
| { | |
| UITableViewCell* cell = [tableView dequeueReusableCellWithIdentifier:@"cell"]; | |
| if(cell == nil) | |
| cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:@"cell"]; | |
| { |
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) setupButtons | |
| { | |
| [super setupButtons]; | |
| for (UIView *view in [[self view] subviews]) { | |
| if ([view isKindOfClass:[UIButton class]]) { | |
| DLog(@"found buttin"); | |
| UIButton* button = (UIButton*)view; |
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
| 2013-02-11 23:01:53.373 Inspection[19041:c07] -[Notes loadView] | |
| 2013-02-11 23:02:00.995 Inspection[19041:c07] -[Notes done] | |
| 2013-02-11 23:02:00.996 Inspection[19041:c07] -[InspectionTable viewWillAppear:] | |
| 2013-02-11 23:02:00.997 Inspection[19041:c07] -[InspectionTable reloadData] |
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
| Hello Chris, | |
| I hope your trip has gone well,I haven't heard form you in a while. | |
| We have had a chance to look at the code in more detail, have discovered some things. | |
| First, there were memory management warnings in the original source, around 7 of them if i recall. | |
| We fixed those. | |
| Our second finding is that this application is constructed in a very unorthodox way, means that debugging will not be a trivial endeavor, as I had believed when I hadn't looked as deeply at the code. | |
| We can debug the 3 bugs, and we have found one crash inducing bug to date that we can fix, but we cannot do that at a fixed rate, |
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
| Hello Chris, | |
| I hope your trip has gone well,I haven't heard form you in a while. | |
| We have had a chance to look at the code in more detail, have discovered some things. | |
| First, there were memory management warnings in the original source, around 7 of them if i recall. | |
| We fixed those. | |
| Our second finding is that this application is constructed in a very unorthodox way, means that debugging will not be a trivial endeavor, as I had believed when I hadn't looked as deeply at the code. | |
| We can debug the 3 bugs, and we have found one crash inducing bug to date that we can fix, but we cannot do that at a fixed rate, |