videoLat 2.0
Video conferencing delay measurements
src/compat.h File Reference

Defines, typedefs and functions to handle iOS/OSX compatibility. More...

#import <Foundation/Foundation.h>
Include dependency graph for compat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


uint64_t monotonicMicroSecondClock ()
void showErrorAlert (NSError *error)
void showWarningAlert (NSString *warning)
#define NSorUIMakePoint   NSMakePoint
#define NSorUIWidth   NSWidth
#define NSorUIHeight   NSHeight
#define NSorUIRectFill   NSRectFill
#define NSorUIMakeRect   NSMakeRect
#define NSorUIMidX   NSMidX
#define NSorUIMidY   NSMidY
typedef NSApplication NSorUIApplication
typedef NSRect NSorUIRect
typedef NSPopUpButton NSorUIPopUpButton
typedef NSButton NSorUIButton
typedef NSButton NSorUISwitch
typedef NSTextField NSorUITextField
typedef NSTextField NSorUILabel
typedef NSView NSorUIView
typedef NSLevelIndicator NSorUILevelIndicator
typedef NSSlider NSorUISlider
typedef RunManagerView MeasurementMasterType
typedef NSColor NSorUIColor
typedef NSBezierPath NSorUIBezierPath

Detailed Description

Defines, typedefs and functions to handle iOS/OSX compatibility.

Define Documentation


Defines and typedefs to ease iOS/OSX compatibility. These forestall a large number of ifdefs in the code by resolving to either an AppKit or a UIKit type or function.

Function Documentation

uint64_t monotonicMicroSecondClock ( )

A monotonic clock.

The current system time in microseconds, since an unknown (but stable) epoch.
void showErrorAlert ( NSError *  error)

Present an error message to the user.

errorThe information to present in the error message.
void showWarningAlert ( NSString *  warning)

Present a warning dialog to the user.

warningThe message to show.
 All Classes Namespaces Files Functions Variables Properties Defines