GitXplorerGitXplorer
j

singleViewGLKitCube

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
47d3df51de39dbeabbb9c3de324936c5db9e9fcb

major WTF, im clueless

jjrwren committed 13 years ago
Unverified
aac44a7d4c90f81f44985969085f5b308c0b1608

another day, another clue

jjrwren committed 13 years ago
Unverified
14f99f79bb8077f4a3c3eb2f326130989d6e587c

it compiles! now to figure out how to actually make it work

jjrwren committed 13 years ago
Unverified
f6e350b53a58ddbf9892f4f827a813bb75b3bb85

it builds... but crashes... i dont know a lot of this well enough

jjrwren committed 13 years ago
Unverified
66e5707eca3264ff6b946d1205ec83d483d6416f

it builds!

jjrwren committed 13 years ago
Unverified
8805150c26bf763e97a2fe03942ee58030123ed6

i get it now.

jjrwren committed 13 years ago

README

The README file for this repository.

This is just a test

  • ViewController.m has all the goods

the goods look like this:

@interface Delegate : NSObject { void (^_callback)(id sender); id _sender; } -(void)invoke; @end

@implementation Delegate -(Delegate*)initWithCallback:(void(^)(id sender)) callback andSender:sender { if (self = [super init]) { _callback = callback; _sender = sender; } return self; } -(void)invoke { _callback(_sender); } @end

@interface UIButton (stuff) { }

  • (void)addTarget:(void (^)(id sender))block forControlEvents:(UIControlEvents)controlEvents; @end @implementation UIButton (stuff)

  • (void)addTarget:(void (^)(id))block forControlEvents:(UIControlEvents)controlEvents { Delegate *del = [[Delegate alloc] initWithCallback:block andSender:self]; [self addTarget:del action:@selector(invoke) forControlEvents:controlEvents]; } @end