TweetFollow Us on Twitter

Jan 01 ADC Direct Volume Number: 17 (2001)
Issue Number: 1
Column Tag: ADC Direct

Getting Started with Mac OS X

By Tim Holmes

The first and more important thing you should know about Mac OS X is that it is coming soon! A public beta of Mac OS X was released in September and Apple will deliver the first commercial release of Mac OS X in early 2001. For overall information about Mac OS X and developers, please visit:

http://developer.apple.com/macosx/

This article presents you with many options for Mac OS X development. Ultimately, however, you will need to make your own choices, factoring in current code base, time to market concerns, and platforms to be supported.

The Apple Developer Connection

is pleased to present a new series of articles specifically designed to help facilitate your Mac OS X development. In the upcoming months, Apple's Technology Managers will present articles covering topics such as

the Cocoa and Carbon APIs, Apple's new development tools, I/O Kit, Quartz, Aqua, and more.

These articles will present an overview of key Mac OS X technologies with pointers to online resources from Apple that provide more in-depth information. Accompanying the feature articles will be sidebars and helper articles to help you more effectively navigate Apple's technical documentation and to teach you shortcuts and tips that will improve your code and accelerate your development.

Whether you've already investigated moving your products to Mac OS X or not, these articles should help you get started and resolve open issues.

Forks in the Road

Before you begin, you will need to know the answers to the following:

  • What platforms will you support -
    Mac OS 9, Mac OS X, Unix, Windows?
  • Are you writing an application, a driver, creating a system extension, etc?
  • Do you have a preexisting code-base? How large is it? Is it in need of an overhaul?

Your answers to these questions will help you choose the most effective development path, and ultimately deliver a better Mac OS X product.

Let's begin with the most common scenario; you're a Mac OS application developer who already has code based on Mac OS 9 or earlier. There are two most likely paths for you. You may use Carbon, the modern set of APIs founded on the traditional Mac OS APIs, or you may use Cocoa, the newer Mac OS X-only object-oriented APIs.

Carbon

The best route for your product depends primarily on your time to market and platform needs. While Cocoa allows you to build your application more efficiently and quickly, you may not have the time to rewrite your application in a new framework. If this is the case, Carbon may be your best route. You can find out how to get started carbonizing your application at:

http://developer.apple.com/techpubs/macosx/Carbon/carbon.html

Cocoa

If you have the time to redesign your application to take advantage of a modern object-oriented framework and would like to produce a Mac OS X-only application, the rapid development tools and robust Cocoa framework will let you create a superior Mac OS X product.

If you currently have very little code written or none at all, and you are interested in creating a Mac OS X-only solution, then you should investigate Cocoa. It's definitely worth investing the short amount of time it takes to come up to speed. For information on Cocoa development, visit:

http://developer.apple.com/techpubs/macosx/Cocoa/CocoaTopics.html

Driver Development

On the hardware side, the I/O Kit for Mac OS X provides Mac developers with a new, much easier way to create drivers. Remember, however,

that what you may have once thought of as a driver under Mac OS 9 may not be considered a driver under Mac OS X. You can find out all you need to know on this topic under the Kernel heading at:

http://developer.apple.com/techpubs/macosx/macosx.html

System Extensions

Finally, if you are considering extending or customizing the operating system, there are numerous ways to do so. In order to create a more stable platform, some changes were made to Mac OS X that make the methods you may have used for Mac OS 9 no longer applicable. For more information about this topic, please see:

http://developer.apple.com/technotes/tn/tn2003.html

New to the Mac?

Because Mac OS X combines support for a variety of technologies beyond those typically associated with the Mac, it presents non-Mac developers with some interesting new opportunities as well.

Java Developers

Mac OS X has an incredible implementation of Java 2, providing you with a consumer desktop platform for your Java applications and applets. If you wish to create a Windows/Mac OS compatible solution, Java very well may be your best route. What's more, via JFC/Swing, you can get Mac OS X's Aqua interface for free. You'll find information and documentation on Java development on Mac OS X at:

http://developer.apple.com/techpubs/java/java.html

UNIX Developers

If you already have a UNIX code base, Mac OS X presents a great opportunity for you. You can quite easily move your application to Mac OS X by taking advantage of the FreeBSD 4.4 APIs that Mac OS X is based upon. If you wish to quickly get your product up and running on Mac OS, simply port your application to these APIs. However, if you are interested in attracting current Macintosh users, you should move the engine of your product over to Mac OS X, and write a Cocoa GUI that will take advantage of Mac OS X's features. To accomplish this, see the Cocoa documentation mentioned above and the BSD documentation below:

http://www.unix-systems.org/online.html
http://www.netbsd.org
http://www.freebsd.org

XWindows Developers

If you have an XWindows product, then you're in luck as Tenon's XTools allows an XWindows solution to run unmodified, while still taking advantage of some of the native Aqua features of Mac OS X. For information on Tenon's product, visit:

http://www.tenon.com/products/xtools/pre-release_beta/

Discounts on Mac OS X Migration

Bring Your Apps to Mac OS X

With Mac OS X Public Beta here, and the commercial release just over the horizon, Mac developers everywhere have a huge need for Carbon and Cocoa application porting, Aqua user interface implementation, and driver development services. Several high-quality software engineering firms, in association with the Apple Developer Connection, are offering these services at very attractive discounts to all ADC Select and Premier members.

http://developer.apple.com/mkt/macosxmigration.html

End-User Tech Support

We all know how expensive and time consuming it is to set up and maintain a comprehensive customer tech support department. To support developers in their migration to Mac OS X, 877MacTank has designed an exclusive and affordable tech support staffing program for ADC Premier and Select members.

http://developer.apple.com/mkt/mactank.html

Until Next Time

Each of these paths to Mac OS X has alternatives, pros and cons, and each may fit one developer's needs better than another's. Once you have fully investigated your options and decided which path is right for you, it's time to get to work. And yes, there is work to be done, but that is where we can help you succeed.

We'll be covering more specific technologies in the upcoming articles. In the meantime, we welcome your suggestions on how to make how to make these articles more useful for you. Feel free to send email to me, Tim Holmes, at <shortstop@apple.com> with your comments.

See You Next Month.


Tim Holmes is Manager of the Mac OS Technology Management group in Apple Worldwide Developer Relations. He's in his 6th year at Apple, having spent the past four in the role of Mac OS Evangelist for Mac OS 7.6 through Mac OS 9. Tim has been in the Macintosh industry for over a decade, dating back to his work at BMUG, and has been an Apple user for over 23 years.

New Mac OS X Related Releases

Worldwide Public Beta Developer Tools

Developers may download the Mac OS X Worldwide Public Beta Developer Tools version from the Download Software area of the ADC Member Site. This download must be used with the Mac OS X Public Beta User CD (the 7-language version), available from the Apple Store. This software set supports 7 languages including Spanish, Italian, & Japanese. ADC Select and Premier members were sent this CD set in October.

http://connect.apple.com/

Latest CarbonLib SDK

The CarbonLib SDK provides all the files needed to begin Carbon development. ADC Members may download the latest prerelease version from the Download Software area of the ADC Member Site.

http://connect.apple.com/

Apple Memory Guide November 2000

The Apple Memory Guide (AMG) contains memory upgrade information for Macintosh computers and LaserWriter printers.

http://asu.info.apple.com/swupdates.nsf/artnum/n10084/

Automatic Update Software 1.2

Automatic Update Software 1.2 provides enhancements to make software updates over the Internet faster and more efficient.

http://asu.info.apple.com/swupdates.nsf/artnum/n11862/

Developer Documentation

The following new and updated documentation is available to help you on your way to successful Mac OS X application and peripheral development at:

http://developer.apple.com/techpubs/

  • Carbon Specification
  • Font Management for Carbon and Mac OS 9
  • Guidelines for Writing Help Tags
  • Adopting the Aqua Interface

  • TN1173 - Understanding Open Transport Asset Tracking
  • TN1104 - Interrupt-Safe Routines
  • TN2007 - The CGDirectDisplay API
  • TN2008 - The CGDirectPalette API
  • Q&A DV45 - Coordinating Deferred Tasks and Secondary Interrupts
  • Q&A QD61 - GetPortBitMapForCopyBits
  • Q&A QD62 - CalcCMask and SeedCFill in Carbon
  • Q&A QD63 - Finding the Bit Depth of a Carbon Printing Manager Graphics Context
  • Q&A QD64 - ATSUI and MLTE Printing
  • Q&A QD65 - QDFlushPortBuffer
  • Q&A QD66 - Replacing OpenPort in Carbon

Did You Know?

Developer Help Center

When it comes to programming for Mac OS X, do you feel like an explorer on the shore of a vast new continent? Don't worry, there are "charts" to guide you-the developer documentation you get when you install the Developer package.

You can access this information through the Developer Help Center, a section of the Help Viewer application. To get to it, first open the (user) Help Center by choosing Mac Help from the Finder menu. Then click the "Developer Help Center" link at the bottom of the page.

The Developer Help Center works just like a Web browser. You can either navigate through the sets of documentation by clicking links or you can search for specific information. Searching is as simple as typing text (phrases, words, or API symbols) in the field at the top of the application and clicking the Ask button. The search engine returns a weighted list of "hits" (links) you can browse through. The Developer Help Center also lets you focus your searches on the set of documentation you are interested in. Thus a search when you are perusing Carbon documentation confines the results to Carbon. If the results yield nothing of interest, you can easily expand the search to the complete set of documentation.

There are some known bugs in the Public Beta version of Help Viewer; see the release notes for details.

Upcoming Seminars and Events

For more information on Apple developer events please visit the Developer Events page at
http://developer.apple.com/events/

Training and Seminars

Developer-Related Conferences

  • MACWORLD Expo San Francisco 2001
    January 9-12, 2001
    Macworld Conference & Expo provides you with the opportunity to introduce both business professionals and consumers to your company and products. Special MACWORLD Conference & Expo exhibitor packages including hardware discounts are available for ADC Premier and Select members.
    http://developer.apple.com/mkt/mwsf2001.html
  • MACWORLD Expo Tokyo 2001
    February 22- 24, 2001 at Makuhari Messe, Japan
    MACWORLD Conference & Expo Tokyo provides you with the ideal venue to introduce your company and products to over 200,000 eager attendees. Special exhibitor packages and hardware discounts for ADC Premier and Select members are available.
    http://developer.apple.com/mkt/mwtokyo2001.html

ADC Programs and Mac OS X

The Apple Developer Connection (ADC) helps Macintosh developers build, test, market, and distribute software and hardware products for Mac OS X. ADC Program members receive advance copies of Mac OS X software and development tools such as Project Builder and Interface Builder directly from Apple.

Programs range in price from $0 to $3500 and are available worldwide. Certain levels of membership entitle developers to benefits such as pre-release software seeds, Apple hardware discounts, technical support, ADC Television, and passes to the Worldwide Developers Conference. Special ADC Member Discounts, included with membership, may be used for third-party services including Mac OS X

migration, Aqua and Cocoa integration, quality assurance, application porting, and more. In addition, members receive discounts on developer products such as WebObjects and the WWDC Conference Sessions on DVD.

And when your Mac OS X product is ready to ship, ADC helps spread the word. Apple's Macintosh Products Guide highlights developer products that are "Built for Mac OS X" or "Classic Compatible". If you offer developer tools or services, we'll also list your products in the weekly ADC News.

For details on program membership, visit:

http://developer.apple.com/membership/
 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Top Mobile Game Discounts
Every day, we pick out a curated list of the best mobile discounts on the App Store and post them here. This list won't be comprehensive, but it every game on it is recommended. Feel free to check out the coverage we did on them in the links... | Read more »
Price of Glory unleashes its 1.4 Alpha u...
As much as we all probably dislike Maths as a subject, we do have to hand it to geometry for giving us the good old Hexgrid, home of some of the best strategy games. One such example, Price of Glory, has dropped its 1.4 Alpha update, stocked full... | Read more »
The SLC 2025 kicks off this month to cro...
Ever since the Solo Leveling: Arise Championship 2025 was announced, I have been looking forward to it. The promotional clip they released a month or two back showed crowds going absolutely nuts for the previous competitions, so imagine the... | Read more »
Dive into some early Magicpunk fun as Cr...
Excellent news for fans of steampunk and magic; the Precursor Test for Magicpunk MMORPG Crystal of Atlan opens today. This rather fancy way of saying beta test will remain open until March 5th and is available for PC - boo - and Android devices -... | Read more »
Prepare to get your mind melted as Evang...
If you are a fan of sci-fi shooters and incredibly weird, mind-bending anime series, then you are in for a treat, as Goddess of Victory: Nikke is gearing up for its second collaboration with Evangelion. We were also treated to an upcoming... | Read more »
Square Enix gives with one hand and slap...
We have something of a mixed bag coming over from Square Enix HQ today. Two of their mobile games are revelling in life with new events keeping them alive, whilst another has been thrown onto the ever-growing discard pile Square is building. I... | Read more »
Let the world burn as you have some fest...
It is time to leave the world burning once again as you take a much-needed break from that whole “hero” lark and enjoy some celebrations in Genshin Impact. Version 5.4, Moonlight Amidst Dreams, will see you in Inazuma to attend the Mikawa Flower... | Read more »
Full Moon Over the Abyssal Sea lands on...
Aether Gazer has announced its latest major update, and it is one of the loveliest event names I have ever heard. Full Moon Over the Abyssal Sea is an amazing name, and it comes loaded with two side stories, a new S-grade Modifier, and some fancy... | Read more »
Open your own eatery for all the forest...
Very important question; when you read the title Zoo Restaurant, do you also immediately think of running a restaurant in which you cook Zoo animals as the course? I will just assume yes. Anyway, come June 23rd we will all be able to start up our... | Read more »
Crystal of Atlan opens registration for...
Nuverse was prominently featured in the last month for all the wrong reasons with the USA TikTok debacle, but now it is putting all that behind it and preparing for the Crystal of Atlan beta test. Taking place between February 18th and March 5th,... | Read more »

Price Scanner via MacPrices.net

AT&T is offering a 65% discount on the ne...
AT&T is offering the new iPhone 16e for up to 65% off their monthly finance fee with 36-months of service. No trade-in is required. Discount is applied via monthly bill credits over the 36 month... Read more
Use this code to get a free iPhone 13 at Visi...
For a limited time, use code SWEETDEAL to get a free 128GB iPhone 13 Visible, Verizon’s low-cost wireless cell service, Visible. Deal is valid when you purchase the Visible+ annual plan. Free... Read more
M4 Mac minis on sale for $50-$80 off MSRP at...
B&H Photo has M4 Mac minis in stock and on sale right now for $50 to $80 off Apple’s MSRP, each including free 1-2 day shipping to most US addresses: – M4 Mac mini (16GB/256GB): $549, $50 off... Read more
Buy an iPhone 16 at Boost Mobile and get one...
Boost Mobile, an MVNO using AT&T and T-Mobile’s networks, is offering one year of free Unlimited service with the purchase of any iPhone 16. Purchase the iPhone at standard MSRP, and then choose... Read more
Get an iPhone 15 for only $299 at Boost Mobil...
Boost Mobile, an MVNO using AT&T and T-Mobile’s networks, is offering the 128GB iPhone 15 for $299.99 including service with their Unlimited Premium plan (50GB of premium data, $60/month), or $20... Read more
Unreal Mobile is offering $100 off any new iP...
Unreal Mobile, an MVNO using AT&T and T-Mobile’s networks, is offering a $100 discount on any new iPhone with service. This includes new iPhone 16 models as well as iPhone 15, 14, 13, and SE... Read more
Apple drops prices on clearance iPhone 14 mod...
With today’s introduction of the new iPhone 16e, Apple has discontinued the iPhone 14, 14 Pro, and SE. In response, Apple has dropped prices on unlocked, Certified Refurbished, iPhone 14 models to a... Read more
B&H has 16-inch M4 Max MacBook Pros on sa...
B&H Photo is offering a $360-$410 discount on new 16-inch MacBook Pros with M4 Max CPUs right now. B&H offers free 1-2 day shipping to most US addresses: – 16″ M4 Max MacBook Pro (36GB/1TB/... Read more
Amazon is offering a $100 discount on the M4...
Amazon has the M4 Pro Mac mini discounted $100 off MSRP right now. Shipping is free. Their price is the lowest currently available for this popular mini: – Mac mini M4 Pro (24GB/512GB): $1299, $100... Read more
B&H continues to offer $150-$220 discount...
B&H Photo has 14-inch M4 MacBook Pros on sale for $150-$220 off MSRP. B&H offers free 1-2 day shipping to most US addresses: – 14″ M4 MacBook Pro (16GB/512GB): $1449, $150 off MSRP – 14″ M4... Read more

Jobs Board

All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.