On Jul 1, 2014, at 6:46 PM, Varun Chandramohan wrote:
> I have a NSTableView (View based) with 8 NSTableColumn each of which has
> NSTableCellView as default built from IB. I followed apple guide
> https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/TableView/Introduction/Intr
Hi All,
I have a NSTableView (View based) with 8 NSTableColumn each of which has
NSTableCellView as default built from IB. I followed apple guide
https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/TableView/Introduction/Introduction.html#//apple_ref/doc/uid/1026i-CH1-SW1
Hi William-
Would the following scenario work for your use case?...
1. When damage occurs, throw an object representing it into a collection.
2. Have a single timer that repeatedly fires a "cleanUp:" method, every five
seconds or so.
3. In cleanUp:, go through the collection and remove a visu
It seems like he wants a set of expire events where certain events will fire
independent of whether the timer is paused or not.
It might be possible to have a global timer for these decorations and each
object has a durationUntilExpiration, which is the global timer + the object's
duration of e
On Jul 1, 2014, at 11:21 , William Squires wrote:
> Use-case:
> I have a (fictitious) FPS game in which the players or bots can "damage" the
> scenery by leaving blast marks. A timer should remove these "decorations"
> after a given delay, but I want the timers to pause if any players/bots are
How about keeping track of the amount of time paused and the remaining time on
the timer is a function of the next interval - the elapsed paused time?
Seems like an overly simple proposal, but would that work if?
On Jul 1, 2014, at 2:21 PM, William Squires wrote:
> What would be the best way t
You can emulate this by adding up time differences between rendering frames.
When the framerate-driven accumulator reaches a certain value fire your action,
and accumulate only when conditions are met.
Sent from my iPad
> On Jul 2, 2014, at 02:21, William Squires wrote:
>
> What would be the
What would be the best way to make an NSTimer that could pause/un-pause its
timing? Subclassing? Containment? Just roll my own with
performWithSelector:afterDelay:? That is, if I (my code) creates a (smart)
NSTimer with a duration of 5 seconds, then three seconds later I need to pause
the tim