Jump To:
Each Sample Code project is buildable and executable source example of how to accomplish a task for a specific Apple technology. They show the correct sequence of calls and parameter data types to provide a generalized method for API use that developers can modify for their specific needs.

Document Descriptions
On Off
Display

Sort by
Title
Sort by
Topic
Sorted by
Date
qtshoweffect (HTML) (DMG) (ZIP)
Illustrates how to apply a filter or transition to pictures using QuickTime Effects APIs.
QuickTime 2003-02-25
qtshoweffect.win (HTML) (DMG) (ZIP)
Illustrates how to apply a filter or transition to pictures using QuickTime Effects APIs.
QuickTime 2003-02-25
qtsprites (HTML) (DMG) (ZIP)
Shows how to create a sprite track that contains three sprites: a space ship, an icon, and a world.
QuickTime 2003-02-25
qtsprites.win (HTML) (DMG) (ZIP)
Shows how to create a sprite track that contains three sprites: a space ship, an icon, and a world.
QuickTime 2003-02-25
qtspritesplus (HTML) (DMG) (ZIP)
Shows how to use video overrides and tween tracks with sprite movies.
QuickTime 2003-02-25
qtspritesplus.win (HTML) (DMG) (ZIP)
Shows how to use video overrides and tween tracks with sprite movies.
QuickTime 2003-02-25
qtwiredactions (HTML) (DMG) (ZIP)
Shows how to attach wired actions to text tracks and make sprites bounce and collide.
QuickTime 2003-02-25
qtwiredactions.win (HTML) (DMG) (ZIP)
Shows how to attach wired actions to text tracks and make sprites bounce and collide.
QuickTime 2003-02-25
qtwiredsprites (HTML) (DMG) (ZIP)
Creates a wired sprite movie with one sprite track that contains two penguins and four buttons.
QuickTime 2003-02-25
qtwiredsprites.win (HTML) (DMG) (ZIP)
Creates a wired sprite movie with one sprite track that contains two penguins and four buttons.
QuickTime 2003-02-25
qtwiredspritesjr (HTML) (DMG) (ZIP)
Shows how to build a set of sprite "buttons" to control the playback of a linear QuickTime movie.
QuickTime 2003-02-25
qtwiredspritesjr.win (HTML) (DMG) (ZIP)
Shows how to build a set of sprite "buttons" to control the playback of a linear QuickTime movie.
QuickTime 2003-02-25
samplemakeeffectmovie (HTML) (DMG) (ZIP)
Shows how to take video from movies and add effects creating a new movie.
QuickTime 2003-02-25
samplemakeeffectmovie.win (HTML) (DMG) (ZIP)
Shows how to take video from movies and add effects creating a new movie.
QuickTime 2003-02-25
watchme (HTML) (DMG) (ZIP)
Uses the WatchMe.mov movie from the QuickTime SDK to convert relative URLs to absolute URLs.
QuickTime 2003-02-25
watchme.win (HTML) (DMG) (ZIP)
Uses the WatchMe.mov movie from the QuickTime SDK to convert relative URLs to absolute URLs.
QuickTime 2003-02-25
WiredSprites (HTML) (DMG) (ZIP)
Demonstrates creating a wired sprite movie containing one sprite track.
QuickTime 2003-02-25
WiredSprites.win (HTML) (DMG) (ZIP)
Creates a QuickTime movie containing wired sprites.
QuickTime 2003-02-25
WiredSpritesJava (HTML) (DMG) (ZIP)
Creates a QuickTime movie containing wired sprites.
QuickTime 2003-02-25
GLUTStereo (HTML) (DMG) (ZIP)
Shows how to use stereo with GLUT under Mac OS X v10.2.3 or later.
Graphics & Imaging 2003-02-20
SimpleTabControl (HTML) (DMG) (ZIP)
Demonstrates how to use a simple tabbed pane window. This control is often used in preferences.
Carbon 2003-02-20
PIDFromBSDProcessName (HTML) (DMG) (ZIP)
Provides a simple API to do process PID lookup based on BSD process name.
Darwin, Open Source, Tools 2003-02-13
BootstrapDump (HTML) (DMG) (ZIP)
Prints the Mach bootstrap port namespace for a particular process.
Darwin 2003-02-06
CryptoSample (HTML) (DMG) (ZIP)
Contains sample code showing symmetric encryption and message digest calculation.
Carbon, Cocoa, Darwin, Security 2003-02-06
HICustomLeftRightSwitch (HTML) (DMG) (ZIP)
Illustrates how to create a custom left/right switch using the HIView functions introduced in Mac OS X 10.2.
Carbon 2003-02-06
HIFramework (HTML) (DMG) (ZIP)
Contains C++ classes which are used by other HIToolbox sample code releases.
Carbon 2003-02-06
Calculator (HTML) (DMG) (ZIP)
Implements a simple "four-banger" calculator.
Carbon 2003-01-30
CalendarView (HTML) (DMG) (ZIP)
Shows how to subclass HIView using C, as well as drawing and hit testing.
Carbon 2003-01-30
CarbonCustomList (HTML) (DMG) (ZIP)
How to implement a custom list using Carbon using CreateCustomList.
Carbon 2003-01-30
CarbonMDEF (HTML) (DMG) (ZIP)
A Mac OS X-compatible, Appearance-savvy sample menu definition function (MDEF).
Carbon 2003-01-30
ClockView (HTML) (DMG) (ZIP)
An HIView sample that uses the HIFramework to implement a scalable analog clock.
Carbon 2003-01-30
ColoredCheckBox (HTML) (DMG) (ZIP)
Demonstrates how to create a colored check box on a gray window backgrounds.
Carbon 2003-01-30
ColorSwatchView (HTML) (DMG) (ZIP)
Implements a color well control as an HIView using HIFramework C++ Carbon Event wrapper classes.
Carbon 2003-01-30
ControlBackground (HTML) (DMG) (ZIP)
Shows how to affect the background color of a control when drawing it.
Carbon 2003-01-30
CustomWindow (HTML) (DMG) (ZIP)
Demonstrates how to create a custom window in Mac OS X.
Carbon 2003-01-30
CustomWindowWidget (HTML) (DMG) (ZIP)
Demonstrates two ways of adding a custom window widget to the window frame of a standard document window.
Carbon 2003-01-30
Dialog popups (HTML) (DMG) (ZIP)
Shows how to use the System 7 popup control cdef in a program using modal dialogs.
Carbon 2003-01-30
DialogBits (HTML) (DMG) (ZIP)
Shows how to deal with many of the most commonly asked Dialog Manager questions.
Carbon 2003-01-30
FindSysFolder (HTML) (DMG) (ZIP)
Returns the vRefNum and DirID of the System Folder.
Carbon 2003-01-30
Fragment Tool (HTML) (DMG) (ZIP)
Demonstrates manipulation of code fragments; combining and separating; viewing and editing information associated with each.
Carbon 2003-01-30
GetDragHiliteColor (HTML) (DMG) (ZIP)
Shows how to obtain the color that Drag Manager uses to hilite regions when calling ShowDragHilite.
Carbon 2003-01-30
HandyScrollingSample (HTML) (DMG) (ZIP)
Shows some ways of implementing scrolling.
Carbon 2003-01-30
HexEditorView (HTML) (DMG) (ZIP)
HIView subclass which implements a hex editor similar to those found in resource editors.
Carbon 2003-01-30
HideMenuBar (HTML) (DMG) (ZIP)
Shows how to hide the menu bar.
Carbon 2003-01-30
HierMenus (HTML) (DMG) (ZIP)
Demonstrates how to use hierarchical menus in your application.
Carbon 2003-01-30
HIViewTest (HTML) (DMG) (ZIP)
An HIView with rudimentary drawing and hit testing.
Carbon 2003-01-30
HTMLSample (HTML) (DMG) (ZIP)
Deprecated - Illustrates one way to use the HTMLRenderingLib Library.
Carbon 2003-01-30
HTMLUserPane (HTML) (DMG) (ZIP)
Deprecated - Shows how to display a HTMLRenderingLib object inside of a user pane control.
Carbon 2003-01-30
icon cache demo (HTML) (DMG) (ZIP)
Demonstrates the use of an icon cache to limit the search for icon resource to one resource file.
Carbon, Graphics & Imaging, Performance 2003-01-30
Icon Play (HTML) (DMG) (ZIP)
Demonstrates the use of icon utilities and popup control cdef in a program using modal dialogs.
Carbon 2003-01-30
IconUtilCheck (HTML) (DMG) (ZIP)
Shows how to determine whether the Icon Utilities are available.
Carbon 2003-01-30
ictbSample (HTML) (DMG) (ZIP)
Deprecated - Shows an example of ictb resource.
Carbon 2003-01-30
Image Difference (HTML) (DMG) (ZIP)
Demonstrates a way to use Quartz's compositing capability to find the difference between two images.
Cocoa, Graphics & Imaging 2003-01-30
kcapApp (HTML) (DMG) (ZIP)
Demonstrates drawing the key caps, given a set of modifiers and KCHR and KCAP resource IDs.
Carbon 2003-01-30
KeyMapTest (HTML) (DMG) (ZIP)
Uses Pascal to display a KeyMap representation whenever keys are pressed.
Carbon 2003-01-30
LabelMenu (HTML) (DMG) (ZIP)
Demonstrates a Finder-like label menu.
Carbon 2003-01-30
ListInDialog (HTML) (DMG) (ZIP)
Demonstrates a list in a dialog.
Carbon 2003-01-30
Live Scroll (HTML) (DMG) (ZIP)
Deprecated - Demonstrates how to implementing live scrolling during the tracking of scroll bar thumbs.
Carbon 2003-01-30
LocalServer (HTML) (DMG) (ZIP)
Deprecated - Sample demonstrates how a Classic process can communicate with a Mac OS X process using IP networking protocols.
AppleScript, Carbon, Core Foundation, Internet & Web, Networking, Porting 2003-01-30
Modal TextEdit (HTML) (DMG) (ZIP)
Shows the steps necessary to implement a scrolling, editable text field in a dialog.
Carbon 2003-01-30
Modeless Dialog Sample (HTML) (DMG) (ZIP)
Illustrates how to implement a moveable modeless dialog.
Carbon 2003-01-30
MovableModal (HTML) (DMG) (ZIP)
Illustrates how to implement a Moveable Modal dialog.
Carbon 2003-01-30
NoResDialog (HTML) (DMG) (ZIP)
illustrates how a dialog window can be created in memory without using any resources.
Carbon 2003-01-30
NoSound (HTML) (DMG) (ZIP)
Illustrates how to install a procedure to be executed when the user restarts or shuts down.
Carbon 2003-01-30
OtherResInfo-MungeDeamon (HTML) (DMG) (ZIP)
Demonstrates interapplication communications for sending commands and receiving data from another application.
Carbon, User Experience 2003-01-30
Password (HTML) (DMG) (ZIP)
Deprecated - Illustrates three different ways to implement password fields in dialogs.
Carbon 2003-01-30
PopUpMenuWithCurFont (HTML) (DMG) (ZIP)
Deprecated - Demonstrates what must be done to control the font used by MDEF 0 during PopUpMenuSelect.
Carbon 2003-01-30
Prefs (HTML) (DMG) (ZIP)
Displays a sample preferences dialog containing editable text fields, radio buttons, and a file selection button.
Carbon 2003-01-30
ReadLocation (HTML) (DMG) (ZIP)
Retrieves the Map control panel settings for longitude and latitude and the time offset from GMT.
Carbon 2003-01-30
ReKeyTrans (HTML) (DMG) (ZIP)
Shows how to patch KeyTrans to ignore dead-key processing so you type fancy accented characters.
Carbon 2003-01-30
ROMResourceDump (HTML) (DMG) (ZIP)
Deprecated - Illustrates how to copy all resources in the Macintosh's ROM into a file.
Carbon 2003-01-30
Scrap Parsing (HTML) (DMG) (ZIP)
Deprecated - Shows how to parse the in-memory scrap.
Carbon 2003-01-30
SegmentView (HTML) (DMG) (ZIP)
An HIView subclass which implements a segment view, similar to that found in the Finder.
Carbon 2003-01-30
SetIndString (HTML) (DMG) (ZIP)
Implements SetIndString(), which sets a particular STR# string to the passed in string. Similar to GetIndString()
Carbon 2003-01-30
SetWindBackColor (HTML) (DMG) (ZIP)
Demonstrates how to programmatically set the background color of a window without flicker without the Appearance Manager.
Carbon 2003-01-30
SICN LDEF (HTML) (DMG) (ZIP)
Implements an LDEF that displays small icons to the left of text in a list.
Carbon 2003-01-30
SimpleList (HTML) (DMG) (ZIP)
A simple illustration of a ListBox Control implementation and its pitfall
Carbon 2003-01-30
Splasher (HTML) (DMG) (ZIP)
Closes a modal window, such as a splash screen, with a mouse click or key press.
Carbon 2003-01-30
SplitView (HTML) (DMG) (ZIP)
An HIView sample that uses the HIFramework and implements a scalable split view.
Carbon 2003-01-30
stdFilterHacking (HTML) (DMG) (ZIP)
Demonstrates problems and workarounds for/with the Standard Dialog Filter.
Carbon 2003-01-30
TickerView (HTML) (DMG) (ZIP)
HIView subclass which implements a scrolling, live stock ticker.
Carbon 2003-01-30
URLTextView (HTML) (DMG) (ZIP)
An HIView subclass which uses LaunchServices to open the URL attached to the view.
Carbon 2003-01-30
Vertest (HTML) (DMG) (ZIP)
Demonstrates how to access the information from the Vers Resource. Developed for Tech Note #189.
Carbon 2003-01-30
qtdataref (HTML) (DMG) (ZIP)
Shows how to work with data references and data handlers.
QuickTime 2003-01-24
qtdataref.win (HTML) (DMG) (ZIP)
Shows how to work with data references and data handlers.
QuickTime 2003-01-24
PDFView (HTML) (DMG) (ZIP)
Shows how to display or print a multi-page PDF document and scroll an NSscrollview's contents by dragging.
Cocoa 2003-01-23
AddFrameToMovie (HTML) (DMG) (ZIP)
Shows how to add an additional frame to the end of an existing movie.
QuickTime 2003-01-14
AddressBookCarbon (HTML) (DMG) (ZIP)
Demonstrates some basic manipulations of the Mac OS X 10.2.x (and beyond) Address Book API.
Apple Applications, Carbon 2003-01-14
AddressBookCocoa (HTML) (DMG) (ZIP)
Demonstrates some basic manipulations of the Mac OS X 10.2.x (and beyond) Address Book API.
Apple Applications, Carbon, Cocoa 2003-01-14
AddTextMovie.win (HTML) (DMG) (ZIP)
Shows how to Add a text track to a Movie.
Java, QuickTime 2003-01-14
addvractions (HTML) (DMG) (ZIP)
Illustrates how to add wired actions to a QuickTime VR movie.
QuickTime 2003-01-14
addvractions.win (HTML) (DMG) (ZIP)
Illustrates how to add wired actions to a QuickTime VR movie.
QuickTime 2003-01-14
AE Interaction Sample (HTML) (DMG) (ZIP)
Provides an interactive demonstration of what the different Apple Event Manager interaction levels mean at the user level.
Carbon 2003-01-14
AESendandReceive (HTML) (DMG) (ZIP)
Deprecated - Sending and receiving Apple Events with JDK 1.3.1 on Mac OS X.
Java 2003-01-14
aglClipBufferRect (HTML) (DMG) (ZIP)
Shows the use of clip regions and buffer rects in AGL.
Carbon, Games, Graphics & Imaging 2003-01-14
AIFFWriter (HTML) (DMG) (ZIP)
Deprecated - A Sound Manager sound output device component.
QuickTime 2003-01-14
aiffwriter.win (HTML) (DMG) (ZIP)
Deprecated - A Sound Manager sound output device component.
QuickTime 2003-01-14
AlwaysPreview (HTML) (DMG) (ZIP)
Demonstrates how to force the preview enabled mode by install a modal dialog filter proc in CustomGetFilePreview.
QuickTime 2003-01-14
AnimatedSlider (HTML) (DMG) (ZIP)
Demonstrates the use of an NSTimer to animate a control in Cocoa.
Cocoa 2003-01-14
AppUsingSheets (HTML) (DMG) (ZIP)
Implements a simple, document-based application that uses sheets during printing.
Carbon, Graphics & Imaging, Printing, User Experience 2003-01-14