Game Loop in Cocoa
robmcq Wrote:Is there any way to force the Timer to update the animation while the user is holding on to the slider?
Yes and no, you can do updates while a user is moving the slider without a timer. Just give the slider an action like this:
Code:
[mySlider setAction:@selector(updateStuff:)];then write the method
Code:
- (void)updateStuff:(id)sender {
//update what you want
}"When you dream, there are no rules..."
| Messages In This Thread |
|
Game Loop in Cocoa - robmcq - Sep 27, 2005, 09:10 AM
Game Loop in Cocoa - unknown - Sep 27, 2005, 09:14 AM
Game Loop in Cocoa - Malarkey - Sep 27, 2005, 09:23 AM
Game Loop in Cocoa - robmcq - Sep 27, 2005, 09:44 AM
Game Loop in Cocoa - Taxxodium - Sep 27, 2005, 09:47 AM
Game Loop in Cocoa - unknown - Sep 27, 2005, 09:50 AM
Game Loop in Cocoa - Taxxodium - Sep 27, 2005 09:52 AM
Game Loop in Cocoa - unknown - Sep 27, 2005, 09:53 AM
Game Loop in Cocoa - robmcq - Sep 27, 2005, 10:01 AM
Game Loop in Cocoa - akb825 - Sep 27, 2005, 10:49 AM
|
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| iPhone game loop | agreendev | 2 | 3,718 |
Jul 27, 2010 11:32 AM Last Post: AnotherJake |
|
| Trouble with the canonical game loop | TomorrowPlusX | 27 | 9,081 |
Aug 12, 2009 04:22 AM Last Post: TomorrowPlusX |
|
| Proper game update loop in Cocoa? | LoneIgadzra | 13 | 5,715 |
May 30, 2008 05:49 AM Last Post: ThemsAllTook |
|
| Yield in a Cocoa while loop | Fenris | 7 | 4,008 |
Dec 28, 2007 02:00 AM Last Post: Fenris |
|
| Controlling Game Loop | Nick | 2 | 2,860 |
Jul 21, 2007 07:12 PM Last Post: Nick |
|

