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
#import <Foundation/Foundation.h> | |
@interface PlaylistFolder : NSObject | |
@property (retain) NSArray *playlists; | |
-(id)trackCount; | |
@end | |
@interface Playlist : NSObject | |
@property (retain) NSArray *tracks; | |
@end |
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
typedef void(^SPDependsCallback)(); | |
/** | |
* Add a dependency from an object to another object. | |
* Registers that your object depends on the given objects and their key paths, | |
* and invokes the callback when the values of any of the given key paths | |
* changes. | |
* | |
* If an owner and association name is given, the dependency object is | |
* associated with the owner under the given name, and automatically deallocated |
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
(gdb) po [tabController objectAtIndex:1] | |
<SPNavigationController: 0x4c20a50> | |
(gdb) po [[tabController objectAtIndex:1] viewControllers] | |
<__NSArrayI 0x50bb480>( | |
<SearchViewController: 0x952920> | |
) | |
(gdb) po [[[tabController objectAtIndex:1] viewControllers] objectAtIndex:0] | |
<SearchViewController: 0x952920> | |
(gdb) po [[[[tabController objectAtIndex:1] viewControllers] objectAtIndex:0] navigationController] | |
Can't print the description of a NIL object. |
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
2011-07-10 17:42:52.029 SPSuccinct[59337:707] Hello there, (null) | |
2011-07-10 17:42:52.032 SPSuccinct[59337:707] Hello there, world! |
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
// | |
// hej2AppDelegate.m | |
// hej2 | |
// | |
// Created by Joachim Bengtsson on 2011-08-05. | |
// Copyright 2011 Third Cog Software. All rights reserved. | |
// | |
#import "hej2AppDelegate.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
-(id)init; | |
... | |
// sets up some KVO with https://github.com/nevyn/SPSuccinct/blob/master/SPSuccinct/SPDepends.h | |
$depends(@"audio session", self, @"pause", (id)^{ | |
[selff matchIdleTimer]; | |
}); | |
[[UIDevice currentDevice] setBatteryMonitoringEnabled:YES]; | |
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(matchIdleTimer) name:UIDeviceBatteryStateDidChangeNotification object:nil]; | |
} |
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
NSDictionary *rootRep = [children objectAtIndex:0]; | |
// Give up gracefully if rep doesn't match reality | |
if( not [[rootRep objectForKey:@"class"] isEqual:NSStringFromClass([rootController class])]) | |
return self; http://getsetgames.com/wp-content/uploads/2009/07/grab-menu.png | |
[rootController initWithObjectRepresentation:rootRep]; |
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
NAME USED AVAIL REFER MOUNTPOINT | |
fast 10.4G 39.3G 18K /fast | |
fast/system 10.4G 39.3G 33K / | |
fast/system/root 1024M 39.3G 1008M legacy | |
fast/system/tmp 3.67M 39.3G 3.67M /tmp | |
fast/system/usr 9.33G 39.3G 18K /usr | |
fast/system/usr/local 5.22G 39.3G 5.22G /usr/local | |
fast/system/usr/obj 2.60G 39.3G 2.60G /usr/obj | |
fast/system/usr/ports 1.35G 39.3G 183M /usr/ports | |
fast/system/usr/ports/distfiles 1.17G 39.3G 1.17G /usr/ports/distfiles |
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
#import <Cocoa/Cocoa.h> | |
#import "SPLangNode.h" | |
@interface SPLangUndoer : NSObject { | |
NSUndoManager *mgr; | |
SPLangNode *root; | |
} | |
-(id)initWatchingTree:(SPLangNode*)tree withUndo:(NSUndoManager*)undoManager; | |
@end |
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
@interface SPAppearance : NSObject | |
+(id)sharedAppearance; | |
/** return a button with [name].png for normal, [name]-highlighted.png for highlight state, | |
[name]-selected.png for selected and [name]-disabled.png for disabled, and combinations thereof. | |
If the image conforms to configuredImageNamed, its 9-part configuration will be used for the button, | |
and its title insets configured appropriately. | |
*/ | |
-(UIButton*)buttonWithImageNamed:(NSString*)name; |