O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Graphics: General

These functions provide a number of convenient wrappers to common graphics and drawing tasks, such as erasing the contents of a rectangle, drawing various borders, and more.

NSCopyBits

void NSCopyBits(int srcGState, NSRect srcRect, NSPoint destPoint)

NSCountWindows

void NSCountWindows(int *count)

NSCountWindowsForContext

void NSCountWindowsForContext(int context, int *count)

NSDottedFrameRect

void NSDottedFrameRect(NSRect aRect)

NSDrawBitmap

void NSDrawBitmap(const NSRect rect, int pixelsWide, int pixelsHigh, int bitsPerSample, int samplesPerPixel, int bitsPerPixel, int bytesPerRow, BOOL isPlanar, BOOL hasAlpha, NSColorSpace colorSpace, const unsigned char *const data[5])

NSDrawButton

void NSDrawButton(const NSRect aRect, const NSRect clipRect)

NSDrawColorTiledRects

NSRect NSDrawColorTiledRects(NSRect boundsRect, NSRect clipRect, const NSRectEdge *sides, NSColor **colors, int count)

NSDrawDarkBezel

void NSDrawDarkBezel(NSRect boundsRect, NSRect clipRect)

NSDrawGrayBezel

void NSDrawGrayBezel(NSRect boundsRect, NSRect clipRect)

NSDrawGroove

void NSDrawGroove(NSRect boundsRect, NSRect clipRect)

NSDrawLightBezel

void NSDrawLightBezel(NSRect boundsRect, NSRect clipRect)

NSDrawTiledRects

NSRect NSDrawTiledRects(NSRect boundsRect, NSRect clipRect, const NSRectEdge *sides, const float *grays, int count);

NSDrawWhiteBezel

void NSDrawWhiteBezel(NSRect aRect, NSRect clipRect)

NSDrawWindowBackground

void NSDrawWindowBackground(NSRect ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required