THIS PROJECT HAS MOVED to an actual repository at https://github.com/nevyn/SPMediaKeyTap.
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)closeDown { | |
NSArray *stores = [self.persistentStoreCoordinator persistentStores]; | |
for (NSPersistentStore *store in stores) { | |
DebugLogging(@"Closing Core Data store at %@", [store URL]); | |
NSError *error = nil; | |
if (![self.persistentStoreCoordinator removePersistentStore:store error:&error]) { | |
DebugLogging(@"Unable to close Core Data store: error %@", [error localizedDescription]); | |
} | |
} | |
} |
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
// | |
// KSPowerAssertion.h | |
// Sandvox | |
// | |
// Created by Mike on 04/08/2012. | |
// Copyright (c) 2012 Karelia Software. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <IOKit/pwr_mgt/IOPMLib.h> |
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
// | |
// NSWindow+BetterSheets.h | |
// Gistapo | |
// | |
// Created by Brent Royal-Gordon on 7/12/13. | |
// Copyright (c) 2013 Architechies. All rights reserved. | |
// | |
#import <Cocoa/Cocoa.h> |
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
extern NSArray *PRHArrayByMap(NSArray *inArray, id (^block)(id)); |
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)viewWillAppear:(BOOL)animated | |
{ | |
[super viewWillAppear:animated]; | |
NSIndexPath *selectedRowIndexPath = [self.tableView indexPathForSelectedRow]; | |
if (selectedRowIndexPath) { | |
[self.tableView deselectRowAtIndexPath:selectedRowIndexPath animated:YES]; | |
[[self transitionCoordinator] notifyWhenInteractionEndsUsingBlock:^(id<UIViewControllerTransitionCoordinatorContext> context) { | |
if ([context isCancelled]) { | |
[self.tableView selectRowAtIndexPath:selectedRowIndexPath animated:NO scrollPosition:UITableViewScrollPositionNone]; |