看板 [ MacDev ]
討論串[問題]關於Thread的基礎問題
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 19→)留言21則,0人參與, 最新作者angelyin (等待.微笑)時間16年前 (2009/09/29 22:46), 編輯資訊
0
0
0
內容預覽:
謝謝這位前輩. 我想在請問另外一個問題. performSelectorOnMainThread:@selector(D:) withObject:E waitUntilDone:F. 1.請問上面這個method是指傳送message給main thread上的D嗎?. 那. D是指要invoke
(還有100個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者zonble (zonble)時間16年前 (2009/09/29 18:08), 編輯資訊
0
0
0
內容預覽:
假如原來的 code 是:. [myObj myMethodWithObject:myParameter];. 要用 Thread 的話. [NSThread detachNewThreadSelector:@selector(myMethodWithObject:). toTarget:myObj

推噓0(0推 0噓 2→)留言2則,0人參與, 最新作者angelyin (等待.微笑)時間16年前 (2009/09/29 17:23), 編輯資訊
0
0
0
內容預覽:
各位前輩好. 最近剛開始看Thread. 知道在iPhone上寫Thread可以用NSThread. 看到Threading Programming Guid上寫. 若要detach a new Thread. 可以使用. detachNewThreadSelector:@selector(A:)
(還有26個字)
首頁
上一頁
1
下一頁
尾頁