REKit
REKit copied to clipboard
A collection of NSObject extensions that brings out Blocks latent ability.
`respondsToSelector:withKey:usingBlock:`によって動的にメソッドを追加したNSStringのインスタンス(*)を使ってformattedStringを作ろうとすると、無限ループを引き起こす。 (*): 正確には、NSStringクラスクラスタを構成するプライベートなNSStringサブクラスのサブクラス --- // This causes endless loop NSString\* string = @"hoge"; [string respondsToSelector:@selector(_) withKey:nil usingBlock:^(NSString\* receiver){ NSLog(@"%@", receiver); }]; [string performSelector:@selector(_)]; --- // This also causes endless loop...
REKit1.0.1を導入した状態でMPMoviePlayerViewControllerのインスタンスを作成すると以下の例外が出る **\* Terminating app due to uncaught exception 'NSRangeException', reason: 'Cannot remove an observer for the key path "contentsAreFlipped" from because it is not registered as an observer.' スタックはこんな感じ #11...