iphone - Is a pointer used with a NSTimeInterval? -


do use pointer nstimeinterval though defined int?
instance use: nstimeinterval *time or nstimeinterval time

thank you!

nstimeinterval double, double-click symbol while holding cmd see typedef. use directly, can use pointer example able change value in method call:

- (void) dosomethinglongandreturnduration: (nstimeinterval*) duration {     cfabsolutetime start = cfabsolutetimegetcurrent();     …     cfabsolutetime end = cfabsolutetimegetcurrent();     *duration = end-start; } 

this weird example, idea.


Comments

Popular posts from this blog

delphi - TJvHidDeviceController "DevicePath" always showing "\" -

Disabling Android home button for industry application -

asp.net mvc 3 - Unexpected "foreach" keyword after "@" character -