EDCommonDefines


Declared In:
EDCommonDefines.h



Defined Types

Synopsis:

typedef unsigned char byte;


Symbolic Constants

Synopsis:

EDCOMMON_EXTERN  extern
EDCOMMON_EXTERN  extern
EDCOMMON_DLL_GOOP  __declspec(dllexport)
EDCOMMON_DLL_GOOP  __declspec(dllimport)
EDCOMMON_EXTERN  extern "C" EDCOMMON_DLL_GOOP
EDCOMMON_EXTERN  EDCOMMON_DLL_GOOP extern
EDCOMMON_EXTERN  extern "C"
EDCOMMON_EXTERN  extern

Description:

Ignore this stuff. It is needed thanks to Microsoft's great DLL implementation.

Synopsis:

UNKNOWN  2

Description:

Use this if you want to say neither YES nor NO...

Synopsis:

DNC  [NSNotificationCenter defaultCenter]

Description:

A shortcut to get the default notification center

Synopsis:

DEFAULTS  [NSUserDefaults standardUserDefaults]

Description:

A shortcut to get the standard user defaults

Synopsis:

NOW  [NSCalendarDate calendarDate]

Description:

A shortcut to instantiate a CalendarDate object containing the current time and date


Macro Definitions

Synopsis:

CAST(ID, CLASSNAME)

Description:

Use this to cast an object pointer to a specific class, eg. myString = CAST([array lastObject], NSString), asserting that the object really is an instance of the class or one of its subclasses. Raises if the assertion fails.

Synopsis:

EDLogBody(area, format, arg1, arg2, arg3, arg4)

Description:

Don't call this directly.

Synopsis:

EDLog(l, f)
EDLog1(l, f, arg1)
EDLog2(l, f, arg1, arg2)
EDLog3(l, f, arg1, arg2, arg3)
EDLog4(l, f, arg1, arg2, arg3, arg4)

Description:

Log text with format f and arguments argN with the logmask specified in l. If l & EDLogMask !== 0 the output is supressed and in this case none of the strings are needed. This means that you can pass [myObject description] and the method is only invoked if the output is required.


Static Inline Functions

Synopsis:

id EDCast(id object, Class aClass, SEL cmd, id self, const char *file, int line)

Description:

Don't call this directly.


Global Variables

Synopsis:

unsigned int EDLogMask;

Description:

A global variable that determines the output generated by the log macros.

Synopsis:

void (*_EDLogFunction)(NSString *);

Description:

Function pointer to the function used by the log macros. NSLog by default. Note that the function does not have to be able to deal with variable arg lists; it is always called with excatly on string argument.


Version 2.0 Copyright ©2002 by Erik Doernenburg. All Rights Reserved.