This article has been archived and is no longer being updated. It may not work with the most recent OS versions.
IntroductionWhen Mac OS X 10.6 was introduced, the Mac got a very powerful duo of developer tools that made development on a lot easier. With iOS 4.0 developers finally got access to these tools as well. These tools are known as Blocks & Grand Central Dispatch. This article is not an introduction to these technologies as i've already covered them before here http://cocoasamurai.blogspot.com/2009/0
iPhone SDK4.0ã«ãªãããã«ãã¹ã¬ããé¢é£ã«ãããªãã®å¤æ´ãå ãããã¾ããããã®ä¸ã¤ã®å½±é¿ã¨ãã¦ãNSOperationã®ä»æ§ãå¤ãã£ã¦ãã¾ãã ä½ãèããã«isConcurrentãYESã«ãã¦çµãã§ããã¢ããªã¯iOS4ã§ã¯åããªããªãå¯è½æ§ãããã¾ãã æãå½±é¿ãåããã®ã¯ãNSURLConnectionã«ããHTTPãªã¯ã¨ã¹ããNSOperationã使ã£ã¦ããå ´åã§ããããNSURLConnectionããã«ãã¹ã¬ããã§ä½¿ãã«ã¯ãããªãä¸å¯§ã«å®è£ ãã¦ãããªãã¨åããªããªãã¾ãã æã£åãæ©ãã®ã¯NSOperationQueueã®çæã以ä¸ã®ããã«æ示çã«ã¡ã¤ã³ã¹ã¬ããã®å¼ã³åºãã«å¤æ´ãããã¨ã§ãã // alloc,initã¯ãiPhone3.xã§isConcurrent=NOã®æãããã³iOS4ã§ã¯å¥ã¹ã¬ããã§èµ·åããã // iPhone3.xã§isConcurren
ç¡çºç©ºé ãããã(´Ïï½*) Entries Snow Leopardã¨NSOperationQueue ã¿ã°: Objective-C Mac NSOperation Snow Leopardã§Grand Central Dispatchãå°å ¥ãããã¯ããã¦NSOperationQueueã¯ã©ããªã£ãã®ãã Mac Dev Center: NSOperationQueue ClassReference In Mac OS X v10.6 and later, operation queues use the libdispatch library (also known as Grand Central Dispatch) to initiate the execution of their operations. ãMac OS X 10.6以éã®NSOperationQueueã®ä¸
⺠2010 (165) ⺠6æ (13) ⺠5æ (31) ⺠4æ (30) ⺠3æ (31) ⺠2æ (28) ⺠1æ (32) â¼ 2009 (366) ⺠12æ (31) ⺠11æ (30) ⺠10æ (31) â¼ 9æ (30) ããã¢ããªå¶ä½ç¶ã - FireFox3.5 ã®ãã¼ã¹ããã¼ãã¿ã¤ãã¯ï¼ ããã¢ããªå¶ä½ - Safariã®URLãã HTMLã®<A>ã¿ã°ãçæãã Snow Leopard ã§å°å ¥ããã NSApplicationDelegate Programming in Objective-C 2.0 LiveLessons Bundle Tips: SimpleCap ãã Picasa ã¸ç»åãã¢ãããã¼ããã WPSU(19) - WebKitã§æ°è¦ã¦ã£ã³ãã¦ãéãï¼window.openãªãã·ã§ã³ï¼ WPSU(18) - WebKit
Snow Leopard ã«ã¯ Grand Central Dispatch (ä»¥ä¸ GCD) ã¨ããæ©è½ãããããã㯠C ã¨å½ç¶ C++, Objective-C, Objective-C++ ã«ã¯ãã¼ã¸ã£ã®ãããªãã®ã追å ãããã«ãã³ã¢ãª CPU ã«ãããè¨ç®ã®ä¸¦åå®è¡ãç°¡åã«æ¸ããããã«ãããããã ç§ã¯ä¸¦ååã«ã¯å ¨ç¶è©³ãããªãã®ã ãã©ãã¯ãã¼ã¸ã£ã®ãããªãã®ã¯æ°ã«ãªãã®ã§èª¿ã¹ã¦ã¿ãã Block Apple Developer Connection ã«ãã Introducing Blocks and Grand Central Dispatch 㯠GCD ã®å ¨ä½åãã³ã¼ãã交ãã¤ã¤ãããããã説æãã¦ããããã® âblocksâ ã¨ããã®ãã¯ãã¼ã¸ã£ã®ãããªãã®ã ã Blocks are similar to â but far more powerful than â tr
Snow Leopardã«ã¯ãæ°ãã«ãGrand Central Dispatchãï¼GCDï¼ãæ¡ç¨ãããããã«ãã³ã¢æ代ã«åãããã«ãã¹ã¬ããå®è¡ç°å¢ããã³éçºåºç¤ã§ãããé«ããã©ã¼ãã³ã¹ãªä¸¦ååããã°ã©ã ãè¿ éã«è¨è¿°ã§ãããã¨ãç¹å¾´ã ã 以åã®ã·ã¹ãã ã§Cocoaã¢ããªããã«ãã³ã¢å¯¾å¿ã«ããã¨ãã«ã¯ãNSThreadãå©ç¨ãã¦ããï¼pThreadããããï¼ãããããOPENSTEPã®æ代ããåå¨ããNSThreadã«ã¯ã¹ã¬ãããåæãããæ©è½ããªããNSLockãªã©ãé§ä½¿ãã¤ã¤èªåã§ã³ã¼ãã£ã³ã°ããå¿ è¦ããã£ããLeopardã®ã¨ãã«ã¯ãã¹ã¬ããã®çæããåæãçµäºã«è³ãã¾ã§ã®å¦çãèªååããNSOperationã追å ããããã®ã®ãAppleã¯åºç¤é¨åã«æ¹è¯ã®ä½å°ããã¨èãããããã ãããGCDã§ããã®éè¦ãªãã¼ãã§ãããBlockãã¨ãQueueãã ãBlockã¯Cã¨C++ãOb
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}