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 ViewController : NSObject | |
<BMLazy> | |
@property (nonatomic, strong, bm_assign_once) NSString *stubObject; | |
@end | |
-(void)onSomeEvent |
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 BMXyz | |
@property ( nonatomic, readwrite, bm_final ) NSString* writeOnceStub; | |
@end |
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 BMXyz | |
@property ( nonatomic, readwrite ) NSString* writeOnceStub; | |
@end |
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
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
return -1; | |
} | |
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section | |
{ | |
return -1; | |
} |
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)testLevelIsStoredAfterSuccessfullFetch | |
{ | |
__block SCLevelResponse* receivedResponse = nil; | |
__block NSError* receivedError = nil; | |
SCItemsFileManagerCallbacks* callbacks = [ SCItemsFileManagerCallbacks new ]; | |
{ | |
callbacks.onLevelLoadedBlock = ^void( SCLevelResponse* response, NSError* error ) | |
{ | |
receivedResponse = response; |
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)onLevelReloaded:( SCLevelResponse* )levelResponse | |
{ | |
NSParameterAssert( nil != levelResponse ); | |
NSParameterAssert( nil != levelResponse.levelParentItem ); | |
self->_loadedLevel = levelResponse; | |
// register cells as content has been loaded | |
for ( SCItem* item in levelResponse.levelContentItems ) | |
{ |
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 MyCell : UITableViewCell | |
+(NSString*)reuseId; | |
@property ( nonatomic, strong ) MyCellController* cellController; | |
@end |
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
fatal error: file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITableView.h' has been modified since the precompiled header '/var/folders/fw/yrmk7vp92d531rckrfh6gqk40000gn/C/com.apple.DeveloperTools/5.0.2-5A3005/Xcode/5.0.2-5A3005/Xcode/ModuleCache/9OZFK1C8N0DD/UIKit.pcm' was built |
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
@protocol MyBlockProtocol; | |
typedef id<MyBlockProtocol>(^MyFactoryMethodBlock)( NSString* )objectId | |
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 NSArray | |
-(instancetype)initWithXXX:() | |
{ | |
NSArray_XXX_Impl* impl = [ NSArray_XXX_Impl new ]; | |
// initialize impl | |
OlderNewer