Loading...
Uploaded by cupcocoa on Jun 5, 2011
Working on some Rails like validations for UIKit, here I show some interesting things about the Obj-C run-time which make this possible.
Film & Animation
Standard YouTube License
Collection classes do not copy blocks in the iOS5 Beta, FYI :(
cupcocoa 8 months ago
update: I've since realised a mistake (thanks to MikeAsh & Psy) that collection classes in Cocoa do not copy Blocks as I thought they might. So I'll have to look into improving that.
for the mean time:
[NSArray arrayWithObject:[[^{ } copy] autorelease]];
Load more suggestions
Collection classes do not copy blocks in the iOS5 Beta, FYI :(
cupcocoa 8 months ago
update: I've since realised a mistake (thanks to MikeAsh & Psy) that collection classes in Cocoa do not copy Blocks as I thought they might. So I'll have to look into improving that.
for the mean time:
[NSArray arrayWithObject:[[^{ } copy] autorelease]];
cupcocoa 8 months ago