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
164 9 Chapter 8: The Frameworks of Mac OS X: Carbon
Events that are received by a window have access to these
codes, and you can easily construct a switch statement that
lets you route events appropriately. You do not have to test
where the mouse was clicked to find out what interface ele-
ment was clicked on; you will receive that information direct-
ly from the event parameters.
The way you do that is to check the r value of the
command that is in the event. The code shown previously gets
that command:
ICommandcmd;
GetEventParameter ( inEvent,
kEventParamDirectObj ect,
typeHICommand,
NULL,
sizeof (HICommand) , NULL, &cmd) ;
Access ...
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