Sort by Title |
Sort by Topic |
Sorted by Resource Type |
Sort by Date |
SeeMyFriends
(HTML)
(DMG)
(ZIP)
Illustrates how to use SyncServices API in a Carbon (HLTB) based application
|
Syncing |
Sample Code |
2006-10-16
|
VolumeToBSDNode
(HTML)
(DMG)
(ZIP)
Shows how to iterate across all mounted volumes and retrieve their BSD node names.
|
File Management |
Sample Code |
2006-10-16
|
CFPrefTopScores
(HTML)
(DMG)
(ZIP)
How to access globally shared (writable) user preferences without requiring authentication.
|
Core Foundation, Data Management, Design Guidelines, File Management, Games, Resource Management |
Sample Code |
2006-10-09
|
RecentItems
(HTML)
(DMG)
(ZIP)
Implements "Recent items" menu(s)
|
Human Interface Toolbox, User Experience |
Sample Code |
2006-10-09
|
SampleCMPlugIn
(HTML)
(DMG)
(ZIP)
A contextual menu plugIn for Mac OS X.
|
Design Guidelines, Human Interface Toolbox, Resource Management, Scripting & Automation, User Experience |
Sample Code |
2006-10-09
|
CarbonQuartzComposer_TV
(HTML)
(DMG)
(ZIP)
Demonstrates how to integrate Cocoa based QuartzComposer window into a Carbon based application
|
Graphics & Imaging |
Sample Code |
2006-10-02
|
Quartz2DBasics
(HTML)
(DMG)
(ZIP)
Carbon and Cocoa sample code demonstrating some basic usage of the Quartz 2D API
|
Graphics & Imaging |
Sample Code |
2006-09-11
|
StickiesExample
(HTML)
(DMG)
(ZIP)
Contains sample code and tools used by Sync Services Tutorial to demonstrate debugging syncing applications.
|
Apple Applications, Syncing, User Experience |
Sample Code |
2006-08-08
|
ABPresence
(HTML)
(DMG)
(ZIP)
Displays a list of all the people in your Address Book and their iChat status.
|
Apple Applications, Interapplication Communication |
Sample Code |
2006-08-04
|
HIToolboxSOU-Delegates
(HTML)
(DMG)
(ZIP)
Shows how to use the HIObject Delegate API.
|
Human Interface Toolbox |
Sample Code |
2006-08-04
|
HIToolboxSOU-MenuItemViews
(HTML)
(DMG)
(ZIP)
Shows how to use the Menu Item View API.
|
Human Interface Toolbox |
Sample Code |
2006-08-04
|
Watcher
(HTML)
(DMG)
(ZIP)
Uses FSEvents to monitor a directory hierarchy to keep track of its total size
|
Events & Other Input, File Management |
Sample Code |
2006-08-04
|
AudioQueueTest
(HTML)
(DMG)
(ZIP)
Demonstrates AudioQueue, an audio playback API introduced in Mac OS X 10.5
|
Audio |
Sample Code |
2006-08-01
|
SetCustomIcon
(HTML)
(DMG)
(ZIP)
Demonstrates how to programmatically set a custom icon for a file, folder, or disk.
|
User Experience |
Sample Code |
2006-08-01
|
AppleScriptRunner
(HTML)
(DMG)
(ZIP)
How to send mail and execute other AppleScripts from a Carbon application.
|
User Experience |
Sample Code |
2006-07-31
|
Carbon Porting Tutorial
(HTML)
(DMG)
(ZIP)
Porting a simple application from Mac OS 9 to Mac OS X
|
Porting |
Sample Code |
2006-07-25
|
CarbonCocoaCoreImageTab
(HTML)
(DMG)
(ZIP)
Carbon-based application creates a Cocoa-based web window which used CoreImage filters to transition between tabbed WebViews
|
Human Interface Toolbox, Internet & Web |
Sample Code |
2006-07-25
|
PMPrinterPrintWithFile
(HTML)
(DMG)
(ZIP)
How to send files, for example PostScript and PDF, directly to the printer. Replaces the pict-ps path.
|
Printing |
Sample Code |
2006-07-18
|
AudioDeviceNotify
(HTML)
(DMG)
(ZIP)
Demonstrates how to enumerate audio devices attached to the system and how to handle device notifications
|
Audio |
Sample Code |
2006-04-21
|
HISimpleList
(HTML)
(DMG)
(ZIP)
Illustrates how to create a simple list using the HIView APIs introduced in Mac OS X 10.2.
|
Human Interface Toolbox |
Sample Code |
2006-03-03
|
iTunesController
(HTML)
(DMG)
(ZIP)
iTunesController allows you to control iTunes without having to bring it to the foreground.
|
Accessibility |
Sample Code |
2006-02-23
|
QTCarbonCoreImage101
(HTML)
(DMG)
(ZIP)
Demonstrates how to render QuickTime Movies using Core Image filters and the new video pipeline.
|
QuickTime |
Sample Code |
2006-02-14
|
CheckExecutableArchitecture
(HTML)
(DMG)
(ZIP)
Determine whether a particular Mach-O executable contains a version suitable for executing on a given processor architecture.
|
Runtime Architecture |
Sample Code |
2006-02-07
|
SillyFrequencyLevels
(HTML)
(DMG)
(ZIP)
Demonstrates how to obtain audio frequency levels from a Movie using SetMovieAudioFrequencyMeteringNumBands and GetMovieAudioFrequencyLevels APIs.
|
QuickTime |
Sample Code |
2006-01-25
|
CFNetworkHTTPDownload
(HTML)
(DMG)
(ZIP)
Demonstrates how to download a URL using CFNetworking.
|
Networking |
Sample Code |
2006-01-18
|
filesystem_examples
(HTML)
(DMG)
(ZIP)
Collection of command line tools illustrating filesystem features.
|
File Management |
Sample Code |
2006-01-10
|
EventMonitorTest
(HTML)
(DMG)
(ZIP)
Receive notification of all keyboard, mouse, and tablet events passed to other processes.
|
Events & Other Input |
Sample Code |
2005-11-09
|
TabsShowcase
(HTML)
(DMG)
(ZIP)
Shows how to instantiate and use the Tab control both programmatically and from a nib file.
|
Human Interface Toolbox |
Sample Code |
2005-10-28
|
FileNotification
(HTML)
(DMG)
(ZIP)
kqueue file notification introduced in 10.3. Notification API to detect file system modifications.
|
File Management |
Sample Code |
2005-10-27
|
GetPrimaryMACAddress
(HTML)
(DMG)
(ZIP)
Demonstrates retrieving the MAC address of the built-in Ethernet controller. Useful for uniquely identifying a Macintosh system.
|
Networking, Security |
Sample Code |
2005-10-27
|
HICustomPushButton
(HTML)
(DMG)
(ZIP)
Illustrates how to create a simple custom push button using the HIView functions introduced in Mac OS X 10.2.
|
Human Interface Toolbox |
Sample Code |
2005-10-17
|
ImageMapView
(HTML)
(DMG)
(ZIP)
Demonstrates how to add Accessibility to a complex custom HIView and the related parts of an application.
|
Accessibility, Human Interface Toolbox |
Sample Code |
2005-10-17
|
LoginItemsAE
(HTML)
(DMG)
(ZIP)
Uses Apple events to manipulate the list of login items (items launched when you log in).
|
Interapplication Communication, Process Management |
Sample Code |
2005-10-17
|
CocoaInCarbon
(HTML)
(DMG)
(ZIP)
Demonstrates using Cocoa GUI code in a Carbon application.
|
Design Guidelines, Runtime Architecture |
Sample Code |
2005-10-04
|
ComboBoxPrefs
(HTML)
(DMG)
(ZIP)
Use CFPrefs to store URLs to images for use in a browser style combo box.
|
Graphics & Imaging, Human Interface Toolbox |
Sample Code |
2005-10-04
|
DisplayURL
(HTML)
(DMG)
(ZIP)
Parses a passed in path URL into its various components displaying server information.
|
File Management |
Sample Code |
2005-10-04
|
DialogsToHIViews
(HTML)
(DMG)
(ZIP)
Shows how to convert from an old-style resource-based dialog to a modern nib-based window with HIViews.
|
Human Interface Toolbox |
Sample Code |
2005-08-24
|
KillEveryOneButMe
(HTML)
(DMG)
(ZIP)
Demonstrates how to terminate all other processes.
|
Process Management |
Sample Code |
2005-08-24
|
WindowFun
(HTML)
(DMG)
(ZIP)
Create window layers and groups. Drawing transparent lines. How to display the "Poof" the toolbar uses.
|
Human Interface Toolbox, User Experience |
Sample Code |
2005-08-24
|
BrideOfMungGrab
(HTML)
(DMG)
(ZIP)
Demonstrates the use of overlay windows and CG to draw text on captured video.
|
QuickTime |
Sample Code |
2005-08-12
|
CarbonTransparentWindow
(HTML)
(DMG)
(ZIP)
Shows how to handle window transparency for compositing, non-compositing, and custom HIView-based Carbon windows.
|
Human Interface Toolbox |
Sample Code |
2005-08-10
|
HIObjectThreadController
(HTML)
(DMG)
(ZIP)
Shows how threads can interact with the User Interface handled by the main thread of the application.
|
Human Interface Toolbox |
Sample Code |
2005-08-10
|
MemoryBasedBundle
(HTML)
(DMG)
(ZIP)
Shows how to execute Mach-O code from memory, much like GetMemFragment in CFM.
|
Runtime Architecture |
Sample Code |
2005-08-10
|
PasteboardPeeker
(HTML)
(DMG)
(ZIP)
Using pasteboards for Copy and Paste, Drag and Drop, service support and filter services.
|
Interapplication Communication, Text & Fonts |
Sample Code |
2005-08-10
|
QuickTimeMovieControl
(HTML)
(DMG)
(ZIP)
Demonstrates how to easily add QuickTime media playback to an application
|
QuickTime |
Sample Code |
2005-08-10
|
ScrollAndZoom
(HTML)
(DMG)
(ZIP)
An illustration of the use of the Context Transformation Matrix (CTM) for zooming and scrolling a HIView.
|
Human Interface Toolbox |
Sample Code |
2005-08-10
|
SimpleVideoOut
(HTML)
(DMG)
(ZIP)
Demonstrates how QuickTime Video Output Components can be used to play video out to hardware.
|
QuickTime |
Sample Code |
2005-08-10
|
SpellingChecker-CocoaCarbon
(HTML)
(DMG)
(ZIP)
Demonstrates how to call NSSpellChecker cocoa routines from a Carbon application.
|
Design Guidelines, Runtime Architecture |
Sample Code |
2005-08-10
|
TypeServicesForUnicode
(HTML)
(DMG)
(ZIP)
Shows how to use various ATSUI functions and features going from simple to very complex.
|
Human Interface Toolbox, Text & Fonts |
Sample Code |
2005-08-10
|
DropDraw
(HTML)
(DMG)
(ZIP)
Demonstrates automatic ColorSync color-matching when drawing with QuickTime graphics importers in Panther
|
QuickTime |
Sample Code |
2005-08-01
|
BackgroundExporter
(HTML)
(DMG)
(ZIP)
Demonstrates techniques which can be used to export QuickTime movies in a separate export process.
|
QuickTime |
Sample Code |
2005-07-22
|
SimpleHIMovieViewPlayer
(HTML)
(DMG)
(ZIP)
Demonstrates how to use HIMovieView to play QuickTime Movies.
|
QuickTime |
Sample Code |
2005-07-15
|
FSFileOperation
(HTML)
(DMG)
(ZIP)
This sample shows how to use the FSFileOperation API which supports copying and moving filesystem objects.
|
File Management |
Sample Code |
2005-06-06
|
SDKExample
(HTML)
(DMG)
(ZIP)
Shows how to weak-link against the Carbon framework in various SDKs to adopt new OS features in a single executable.
|
Porting, Runtime Architecture, Tools |
Sample Code |
2005-06-06
|
Custom_HIView_Tutorial
(HTML)
(DMG)
(ZIP)
Tutorial presenting a step-by-step custom HIView development. All steps are documented and provided as standalone projects.
|
Human Interface Toolbox |
Sample Code |
2005-06-01
|
FSCreateFileAndOpenForkUnicode
(HTML)
(DMG)
(ZIP)
Demonstartes the use of FSCreateFileAndOpenForkUnicode to create a file with restricted access on disk and a read/write access path.
|
File Management |
Sample Code |
2005-06-01
|
FSRemoveInheritedACEs
(HTML)
(DMG)
(ZIP)
Demonstrates manipulating access control lists of existing file system objects using the File Manager.
|
File Management |
Sample Code |
2005-06-01
|
HITextViewDemo
(HTML)
(DMG)
(ZIP)
Overview of basic HITextView functionality, including Tiger's new font & spelling panel support.
|
Human Interface Toolbox, Text & Fonts |
Sample Code |
2005-06-01
|
ImageBrowserView
(HTML)
(DMG)
(ZIP)
Implementing a simple HIView subclass
|
Human Interface Toolbox |
Sample Code |
2005-06-01
|
ImageClient
(HTML)
(DMG)
(ZIP)
Demonstrates how to use CFNetwork for synchronous and asynchronous operations, network diagnostics, proxy navigation, and authentication.
|
Networking |
Sample Code |
2005-06-01
|
MouseTracking
(HTML)
(DMG)
(ZIP)
Sample code used in the WWDC 2005 Hands-On session 215 "Moving from QD to Quartz"
|
Graphics & Imaging |
Sample Code |
2005-06-01
|
QuartzLines
(HTML)
(DMG)
(ZIP)
Drawing Lines using Quartz's CGPath & CGContextStrokeLineSegments functions.
|
Graphics & Imaging |
Sample Code |
2005-06-01
|
MoreFilesX
(HTML)
(DMG)
(ZIP)
Deprecated - Shows various File Manager operations through a collection of high-level routines using HFS Plus APIs.
|
File Management |
Sample Code |
2005-05-13
|
ProfileSystem
(HTML)
(DMG)
(ZIP)
Shows how to obtain the same information that System Profiler displays.
|
Core Foundation |
Sample Code |
2005-05-05
|
CarbonSketch
(HTML)
(DMG)
(ZIP)
Core Graphics only example of a Sketch application implemented with HIToolbox. Shows 1x1-CGBitmapContext for hit-testing, printing.
|
Graphics & Imaging |
Sample Code |
2005-03-23
|
QuartzShapes
(HTML)
(DMG)
(ZIP)
Example Quartz functions that implement equivalents to the QuickDraw PaintArc, FrameArc, PaintOval, FrameOval, PaintRect, and FrameRect
|
Graphics & Imaging |
Sample Code |
2005-03-08
|
DockBrowser
(HTML)
(DMG)
(ZIP)
Demonstrates how to use CFNetServices to take advantage of Bonjour service discovery and name resolution.
|
Performance |
Sample Code |
2005-02-08
|
MLTE_CustomScrolling
(HTML)
(DMG)
(ZIP)
Shows how to implement MLTE's custom scrolling functionality
|
Human Interface Toolbox, Text & Fonts |
Sample Code |
2004-10-15
|
SpellingChecker CarbonCocoa Bundled
(HTML)
(DMG)
(ZIP)
How to load and call a Cocoa bundle from a Carbon CFM or Mach-O application
|
Runtime Architecture |
Sample Code |
2004-08-17
|
CFHostSample
(HTML)
(DMG)
(ZIP)
Uses the CFHost API to do DNS hostname lookups and to determine host reachability.
|
Networking |
Sample Code |
2004-04-20
|
DRDataBurnCarbonUI
(HTML)
(DMG)
(ZIP)
DRDataBurnCarbonUI shows how to use the standard DiscRecording burn setup and progress panel from Carbon.
|
File Management |
Sample Code |
2004-04-09
|
DREraseCarbonUI
(HTML)
(DMG)
(ZIP)
DREraseCarbonUI shows how to use the DiscRecording erase setup and progress panel from Carbon.
|
File Management |
Sample Code |
2004-04-09
|
GLCarbon1ContextPbuffer
(HTML)
(DMG)
(ZIP)
Demostrates using OpenGL pixel buffers with a single shared context.
|
Graphics & Imaging |
Sample Code |
2004-03-26
|
GLCarbonSharedPbuffer
(HTML)
(DMG)
(ZIP)
Demostrates sharing a single OpenGL pixel buffer with multiple other contexts.
|
Graphics & Imaging |
Sample Code |
2004-03-26
|
GLUTSurfaceTexture
(HTML)
(DMG)
(ZIP)
Example of using the new glutSurfaceTexture.
|
Graphics & Imaging |
Sample Code |
2004-03-26
|
FSCopyObject
(HTML)
(DMG)
(ZIP)
Copy engine for copying files and directories.
|
File Management |
Sample Code |
2004-03-19
|
AddNibToNav
(HTML)
(DMG)
(ZIP)
Shows how to create a custom area, instantiated from a nib file, in a Navigation Services dialog.
|
File Management, Human Interface Toolbox |
Sample Code |
2004-01-22
|
MapLargeFile
(HTML)
(DMG)
(ZIP)
Shows a technique for mapping files greater than 4GB into memory for faster access.
|
Resource Management |
Sample Code |
2003-11-19
|
MungSaver
(HTML)
(DMG)
(ZIP)
Demonstrates a simple Screen Saver module for Panther, using the Sequence Grabber DataProc mung technique.
|
User Experience |
Sample Code |
2003-11-18
|
HIEmbedder
(HTML)
(DMG)
(ZIP)
Shows how to write a custom embedding HIView which can scroll if set in an HIScrollView.
|
Human Interface Toolbox |
Sample Code |
2003-11-13
|
HIScrollingTextBox
(HTML)
(DMG)
(ZIP)
Offers replacement custom HIViews for the Scrolling TextBox control which does not work in compositing windows.
|
Human Interface Toolbox |
Sample Code |
2003-11-06
|
HITextViewShowcase
(HTML)
(DMG)
(ZIP)
Shows how to create a HITextView using Interface Builder and using programming functions only.
|
Human Interface Toolbox, Text & Fonts |
Sample Code |
2003-10-30
|
Process
(HTML)
(DMG)
(ZIP)
A simple demonstration of the Process Manager API.
|
Process Management |
Sample Code |
2003-10-30
|
AsyncPB
(HTML)
(DMG)
(ZIP)
Deprecated - Describes how to chain File System calls from an interrupt handler like a Time Manager task.
|
File Management |
Sample Code |
2003-10-27
|
CPUGestalt
(HTML)
(DMG)
(ZIP)
Deprecated - Shows how to determine the processor type of the Macintosh you're running on.
|
Resource Management |
Sample Code |
2003-10-27
|
HIDoubleSlider
(HTML)
(DMG)
(ZIP)
Illustrates how to create a double slider using the Appearance and HIView functions introduced in Mac OS X 10.2.
|
Human Interface Toolbox |
Sample Code |
2003-10-27
|
HITextShowcase
(HTML)
(DMG)
(ZIP)
Illustrates some of the different text-related controls, non-controls, and HIViews that are available in Mac OS X 10.3.
|
Human Interface Toolbox, Text & Fonts |
Sample Code |
2003-10-27
|
InkSample
(HTML)
(DMG)
(ZIP)
Demonstrates some usage scenarios for the Ink.Framework APIs.
|
Text & Fonts |
Sample Code |
2003-10-27
|
MoreIsBetter
(HTML)
(DMG)
(ZIP)
Library providing indispensable wrapers and workarounds for many areas of Mac OS programming.
|
Audio, Core Foundation, Data Management, Events & Other Input, File Management, Graphics & Imaging, Human Interface Toolbox, Interapplication Communication, Internationalization, Networking, Porting, Process Management, Resource Management, Runtime Architecture, Security, Text & Fonts, User Experience |
Sample Code |
2003-10-27
|
qtshell
(HTML)
(DMG)
(ZIP)
Simple QuickTime and QuickTime VR viewer framework.
|
QuickTime |
Sample Code |
2003-10-27
|
TextNameTool
(HTML)
(DMG)
(ZIP)
A command line tool sample illustrating how to use various graphical facilities and services without a login.
|
Graphics & Imaging |
Sample Code |
2003-10-27
|
YASTControl
(HTML)
(DMG)
(ZIP)
An application illustrating how to use a user pane control to define MLTE based text fields.
|
User Experience |
Sample Code |
2003-10-27
|
FloatingWindow
(HTML)
(DMG)
(ZIP)
Demonstrates that floating windows are very easy to implement on Mac OS X using Nib files.
|
Human Interface Toolbox |
Sample Code |
2003-10-24
|
MenuViews
(HTML)
(DMG)
(ZIP)
Demonstrates a variety of interesting uses of HIView-based menus in Mac OS X 10.3.
|
Human Interface Toolbox |
Sample Code |
2003-10-24
|
Sheets
(HTML)
(DMG)
(ZIP)
Demonstrates how to create a sheet both in code and through the use of a Nib file.
|
Human Interface Toolbox |
Sample Code |
2003-10-24
|
Tiler
(HTML)
(DMG)
(ZIP)
Modify your applications tile icon within the Mac OS X dock by using both QuickDraw and Quartz
|
Human Interface Toolbox, User Experience |
Sample Code |
2003-10-24
|
DrawSprocketTestOld
(HTML)
(DMG)
(ZIP)
Deprecated - Demonstrates basic implementations of DrawSprocket Functions.
|
Games |
Sample Code |
2003-10-14
|
FinderLaunch
(HTML)
(DMG)
(ZIP)
Shows how to open documents by sending Apple Events to the Finder.
|
File Management, Interapplication Communication, User Experience |
Sample Code |
2003-10-14
|
GlyphaIVOld
(HTML)
(DMG)
(ZIP)
Deprecated - A basic game implementation in the spirit of Joust meant as demonstation of Sprocket usage.
|
Games, Graphics & Imaging |
Sample Code |
2003-10-14
|
Palette and GWorld
(HTML)
(DMG)
(ZIP)
Deprecated - Demonstrates the use of palette and color tables with GWorlds.
|
Graphics & Imaging |
Sample Code |
2003-10-10
|