The Mac Observer

Skip navigational links

DealsOnTheWeb Daily Deal: Kill a Dummy, Get some Wood

Apple Developer Connection: HIToolbox Shows the Way To OS X GUI

by , 9:00 AM EDT, June 25th, 2004

Programmers looking for instruction on how to set up a User Interface (UI) for an OS X application need look no further than the Human interface Toolbox (The HIToolbox), a set of programming tools. Apple has provided a thorough examination of the HIToolbox, complete with examples of code and small completed programs that illustrate how to use the tools. From the article:

The Human Interface Toolbox provides user interface elements (controls) for application developers to use in their programs. Mac OS X v10.2 Jaguar introduced HIObject, the base class in an object-oriented model within the Human Interface Toolbox. This model includes the HIView and HIToolbar subclasses. This article looks at HIView and its child classes, including their creation, event handling, and the derivation of custom classes. If you have pre-Carbon controls, you will find this material useful in planning and executing a move to the HIView model. If your application already uses Carbon controls, you will learn how to incorporate HIView and Control Manager objects.

The in-depth article is a must read for developers of OS X applications. You can find the full article at Apple's Developer Connection Web site.

The Mac Observer Spin:

This is exactly the sort of thing Apple needs to continue doing. Reaching out to developers by first providing the tools they need to create OS X apps, then showing them how to use the tools, is good for new and experienced programmers alike. Not that developers aren't smart enough to find tools on their own, but anything that makes programming apps for OS X easier directly benefits the platform.

Observer Comments

Show: Subjects Only | Full Comments
Close Name:John F. Braun -   TMO Staff Posts: 233 Joined: 11 Jun 2001
Subject: Porting Win32 to OS X

Here's a nice part of the Apple web site that gives some guidance for those that would like to port their Win32 applications to OS X:

http://developer.apple.com/documentation/Porting/Conceptual/win32porting/

Close Name:Guest
Subject: hmm, better off using Cocoa!!

I note that this is the Carbon/C++ interface - but Aqua and Quartz are really designed to be used from the Cocoa/Objective C environment!! They really shine in that context - it's easier to do more complicated things using less code! You can also use the Cocoa components from Java, although Java obviously offers lower performance and a more verbose syntax (and you lose "run anywhere" if you use Cocoa directly.)

That being said, it's nice that there is a C++ interface (and Carbon!) so that you can port legacy code (and C++ code), and also make programs that will work under both OS X and 9.x.

Comment on this Article


You cannot edit your comments.   You cannot delete your comments.
Log in | Register | Having Problems? Reset TMO Cookies & Try Again
Username:   Password:   Log me on automatically each visit   

You are not logged in, and this post will appear as "Guest." Log in with your username and password from the TMO forums. If you do not have a username, you can register here.
Please note that guests are limited to including a maximum of two URLs per post.


Post A Comment
  Subject


  Your Comments



Please enter the word exactly as you see it in the image above. Registered users aren't prompted for this. Having trouble reading the image get a new one.


Recent Headlines - Updated Saturday, November 29th, 2008

Sat., 9:00 PM
Podcast - Apple Weekly Report #135: Apple Lawsuits, Banned iPhone Ad, Green MacBook Ad
Fri., 12:45 PM
Podcast - Mac Geek Gab #178: Batch Permission Changes, Encrypting Follow-up, Re-Enabling AirPort, and GigE speeds
Thu., 1:30 PM
iPO Review - Scosche kickBACK iPhone case
7:00 AM
Happy Thanksgiving from TMO!
Wed., 6:00 PM
TMO Appearances - Nancy Gravley Joins MacJury Gift Guide
5:15 PM
TMO Visits The Bay, a Premium Apple Reseller in New Zealand
3:25 PM
iPO Oh the Games You'll Play - iPhone: The Wii of Handheld Gaming Devices?
2:15 PM
Sonnet Releases Simply Fast FireWire 800 to 400 Adapter
1:10 PM
Mac Gaming News - Disney Plans 1st Annual PotC Online Thanksgiving Event
12:05 PM
iPodObserver - UK Shuts Down iPhone 3G Ad
11:15 AM
TMO Appearances - Jeff Gamet on MacJury Gift Guide
10:30 AM
TMO Contest - TMO Announces Macworld Expo Pass Winners
9:50 AM
PhotoCopy 1.1 Adds iPhoto Event Support
9:15 AM
Acclivity Buys MYOB US
8:30 AM
Review - Bento 2 Holiday Pack
7:50 AM
Microsoft Offers Black Friday Office Discount
7:30 AM
iPO Quick Tip - iPhone: Google Street View
 

The Mac Observer Reader Specials

Apple Stock Quote

  • AAPL: $88.93. Change Today: -3.74.
  • (Prices delayed up to 20 minutes.)
  • Discuss in our Apple Finance Board

Hot Topics

Top Deals From DealsOnTheWeb