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 "\" -

web applications - Making Python scripts work on MAMP -

cocoa - Converting NSString to keyCode+modifiers for AXUIElementPostKeyboardEvent -