Skip to Main Content
Mac OSX Developer's Guide
book

Mac OSX Developer's Guide

by Jesse Feiler
October 2001
Intermediate to advanced content levelIntermediate to advanced
594 pages
21h 44m
English
Morgan Kaufmann
Content preview from Mac OSX Developer's Guide
Carbon Events
9
169
Q
The handler itself is passed in as a universal procedure
pointer (UPP) created with the NewEventHandler-
UP P function. It needs to be packaged as a UPP so that
a reference to it can be stored until the callback is need-
ed. If that callback needs to cross the boundary be-
tween Mach-O and CFM (for example, when a Carbon
application is a CFM app), this step is essential.
0
You then specify the number of events that this han-
dler will respond to.
4. Next, you pass in an array of those events.
0
You can pass in a pointer to any data that you want;
that pointer will be returned to the event handler
whenever ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

OSX Mavericks Essentials

OSX Mavericks Essentials

Wiley
Beginning Mac OS® X Programming

Beginning Mac OS® X Programming

Michael Trent, Drew McCormack
Cocoa in a Nutshell

Cocoa in a Nutshell

Michael Beam, James Duncan Davidson
Cocoa Programming for OS X: The Big Nerd Ranch Guide

Cocoa Programming for OS X: The Big Nerd Ranch Guide

Aaron Hillegass, Adam Preble, Nate Chandler

Publisher Resources

ISBN: 9780122513411