Mac OS X v10.6以éã¨iOS 4.0以éã§ã¯Objective-Cã«Blocksã¨ããã·ã³ã¿ãã¯ã¹ã追å ããã¦ãããããã Blocks Programming Topics: Introduction http://unknownplace.org/memo/2010/05/11/1/ Rubyã¨ã³ã¸ãã¢ã®ããã®Objective-C Blockså ¥é : As Sloth As Possible å¾è ã®ã¨ã³ããªããå¼ç¨: void (^f)(id) = ^(id x) { NSLog(@"ä¸çã®å ¨ã¦ãæµã«åãã¦ããåã¯%@ã®å³æ¹ã ", x); }; f(@"ãã©ã"); idå(Object)ã¨ãã¦ã³ã¬ã¯ã·ã§ã³ã«çªã£è¾¼ãã ããåºæ¥ãããé¢æ°å¼ã³åºãã®ããã«ä½¿ããã¨ãã§ããããããã¤ã¾ãâ¦ã©ããããã¨ãªãã ã£ã¦ã°ãï¼ ã¦ãã¨ã§èª¿ã¹ã¦ã¿ãã ã¾ã¨ã Blocksã¯__NSGlo
{{#tags}}- {{label}}
{{/tags}}