This file contains 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) registerSyncManager | |
{ | |
if (self.applicationSyncManager) return; | |
TICDSLogVerbosity logVerbosity = [[NSUserDefaults standardUserDefaults] integerForKey:kIVTICDSLogVerbosity]; | |
[TICDSLog setVerbosity:logVerbosity]; | |
if (![self hasLocalDatabase]) { |
This file contains 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
-Wall | |
-Wno-deprecated-declarations | |
-Werror=incompatible-pointer-types | |
-Werror=arc-retain-cycles | |
-Werror=implicit-function-declaration | |
-Werror=return-type | |
-Werror=format | |
-Werror=mismatched-parameter-types | |
-Werror=tautological-constant-out-of-range-compare |
This file contains 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
@implementation NSWindow (JSTalk) | |
- (BOOL) storeWindowImageToFile:(NSString*)fileName | |
{ | |
CGWindowID windowID = (CGWindowID)[self windowNumber]; | |
CGWindowImageOption imageOptions = kCGWindowImageDefault; | |
CGWindowListOption singleWindowListOptions = kCGWindowListOptionIncludingWindow; | |
CGRect imageBounds = CGRectNull; | |
CGImageRef windowImage = CGWindowListCreateImage(imageBounds, singleWindowListOptions, windowID, imageOptions); |
This file contains 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
[UIView transitionWithView:nameLabel | |
duration:0.25 | |
options:UIViewAnimationOptionTransitionCrossDissolve | |
animations:^{ | |
[nameLabel setTextColor:textColor]; | |
} | |
completion:nil]; |
This file contains 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
-- Uses System Events' keystrokes to start a recording in SimCap.app | |
-- SimCap: http://www.jaml.co.uk/simcap/ | |
tell application "SimCap" | |
activate | |
tell application "System Events" | |
tell process "SimCap" | |
keystroke "r" using {command down} | |
delay 1.0 | |
keystroke "s" using {command down} |
This file contains 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
-- Uses System Events' keystrokes to start a recording in SimCap.app | |
tell application "SimCap" | |
activate | |
delay 0.5 | |
tell application "System Events" | |
tell process "SimCap" | |
keystroke "r" using {command down} | |
end tell |
This file contains 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
- fixes crash when "buy"-cell is removed more than once | |
- fixes crash by preventing user from "opening" downloading documents | |
- fixed crash by disabling add button when in magic pages | |
- fixes crash in multiple choice training when delaying answers | |
- fixes crash in language edit controller | |
- fixes crash when adding training mode | |
- fixes crash when uploading files | |
- fixes crash in slideshow when going past first word | |
- fixes crash in training mode when repeating words | |
- fixes some other crashes |
This file contains 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
#pragma mark - | |
#pragma mark Core Data stack | |
/** | |
Returns the managed object context for the application. | |
If the context doesn't already exist, it is created and bound to the persistent store coordinator for the application. | |
*/ | |
- (NSManagedObjectContext *)managedObjectContext { | |
if (managedObjectContext != nil) { |
This file contains 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
@interface MSLogger () | |
+ (void)setCurrentLogLevel:(MSLogLevel)currentLogLevel; | |
@end | |
[MSLogger setCurrentLogLevel:MSLogLevelVerbose]; |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>method</key> | |
<string>app-store</string> | |
<key>teamID</key> | |
<string>YOUR_TEAM_ID</string> | |
<key>destination</key> | |
<string>upload</string> |