This is SNUtility.h in view mode; [Download] [Up]
// // $Id: SNUtility.h,v 1.5 1997/10/31 09:06:36 nygard Exp $ // //---------------------------------------------------------------------- // Debug tracing //---------------------------------------------------------------------- #define DSTART NSLog (@"%@ - %@\n", NSStringFromClass ([self class]), NSStringFromSelector (_cmd)) #define DEND NSLog (@"%@ ~ %@\n", NSStringFromClass ([self class]), NSStringFromSelector (_cmd)) //---------------------------------------------------------------------- // Simple exception handler //---------------------------------------------------------------------- #define EHAND NSRunAlertPanel ([localException name], @"%@ - %@\n %@", @"OK", nil, nil,\ NSStringFromClass ([self class]), NSStringFromSelector (_cmd), [localException reason]) //---------------------------------------------------------------------- // This releases the object if it is non-nil, and then makes // sure the variable is nil afterward so that we don't have // references to non-existant objects //---------------------------------------------------------------------- #define SNRelease(name) \ if (name != nil) \ { \ [name release]; \ name = nil; \ } //---------------------------------------------------------------------- // Other //---------------------------------------------------------------------- #define RCSID(str) \ static inline const char *rcsid (void) \ { \ return str " cc:" __DATE__ " " __TIME__; \ }
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.