This is FlyFuncs.m in view mode; [Download] [Up]
#import "FlyFuncs.h" void NXSetPoint(NXPoint *p, NXCoord x, NXCoord y) { p->x = x; p->y = y; } void NXSetSize(NXSize *s, NXCoord width, NXCoord height) { s->width = width; s->height = height; } port_t *mach_sleep_install(void) { port_t *port; NX_MALLOC(port, port_t, sizeof(port_t)); port_allocate(task_self(), port); return(port); } void mach_sleep_remove(port_t *port) { port_deallocate(task_self(), *port); NX_FREE(port); } void mach_sleep(port_t *port, msg_timeout_t msecs) { msg_header_t h; h.msg_size = sizeof(h); h.msg_local_port = *port; msg_receive(&h, RCV_TIMEOUT, msecs); }
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.