Kyle Hammond's Mac Carbon/Toolbox Programming Tips


Go to my home page.

Apple logo Some (mostly-obsolete) programming tips for Mac Carbon/Toolbox programmers

Jan 18, 2001

Color Tables

Always, always, always have white as the first entry of a color table and black as the last entry. Mac OS 9.1 requires it, 680x0 systems require it, and it is a great idea on all other systems (especially multiple monitor systems).

Jan 18, 2001

QuickTime Digital Video

Drawing on top of a video sequence area can (sometimes) disrupt the video input. This is a known limitation of the interaction between the system software and QuickTime video digitizers.

Jan 18, 2001

Mac OS X Public Beta

TextMode calls on MacOS X screw up DrawString and the patterned background.

Jan 18, 2001

Menu Manager

Never modify menus (add items, change text, etc) while a dialog box is on screen. The system just doesn't like it.

Jan 23, 2001

QuickDraw Graphics

Always use LOCAL coordinates for the Rect parameter to DeviceLoop. Global coordinates seem to work OK on single monitor systems but they really shouldn't.

Jan 18, 2001

Window Manager

Never call SetWTitle within a BeginUpdate/EndUpdate sequence.

Go to my home page.

Send feedback to kyle [dot] hammond [at] snowmintcs [dot] com