iPhone OS and what you need to know about it


Anatomy of the iPhone OS

The iPhone OS's frameworks are divided into four major layers. Each of these layers contains a variety of frameworks that you can access when writing iPhone SDK programs. Generally, you should prefer the higherlevel layers when you're coding.

Cocoa Touch is the framework that you'll become most familiar with. It contains the UIKit framework and the address UI framework. UIKit includes window support, event support, and userinterface management, and it lets you create both text and web pages. It further acts as your interface to the accelerometers, the camera, the photo library, and devicespecific information.

Media is where you can get access to the major audio and video protocols built into the iPhone and iPad. Its four graphical technologies are OpenGL ES, EAGL (which connects OpenGL to your native window objects), Quartz (which is Apple's vectorbased drawing engine), and Core Animation (which is also built on Quartz). Other frameworks of note include Core Audio, Open Audio Library, and Media Player.

Core Services offers the frameworks used in all applications. Many of them are data related, such as the internal Address Book framework. Core Services also contains the critical Foundation framework, which includes the core definitions of Apple's objectoriented data types, such as its arrays and sets.

Core OS includes the kernel-level software. You can access threading, files, networking, other I/O, and memory.

C vs. Objective-C

Most of your programming work will be done using the UIKit (UI) or Foundation (NS) frameworks. These libraries are collectively called Cocoa Touch; they're built on Apple's modern Cocoa framework, which is almost entirely object-oriented and, in our opinion, much easier to use than older libraries.

But you'll sometimes have to fall back on libraries that are instead based on simple C functionality. Examples include Apple's Quartz 2D and Address Book frameworks, as well as third-party libraries like SQLite. Expect object creation, memory management, and even variable creation to work differently for these non-Cocoa libraries. When you fall back on non-Cocoa libraries, you'll sometimes have to use Apple's Core Foundation framework, which lies below Cocoa.

Although Core Foundation and Cocoa are distinct classes of frameworks, many of their common variable types are toll-free bridged, which means they can be used interchangeably as long as you cast them. Thus, for example, CFStringRef and NSString are toll-free bridged. The Apple class references usually point out this toll-free bridging for you.

Legal Disclaimer

Our website is not responsible for the information contained by this article. Webworldarticles.com is a free articles resource thus practically any visitor can submit an article. However if you notice any copyrighted material, please contact us and we will remove the article(s) in discussion right away.


This article was sent to us by: Christian Glousten at 09232010

Related Articles

1. What Apple really undertook to promote the iPod
Apple also undertook a sustained advertising push to promote the iPod, which became particularly marked around 2003. Using simple, yet striking, adverts - often featuring a...

2. Market segmentation is a necessity when selling an iPhone iPad app
Segmentation starts when you post your app on the App Store through the categorization required by the store. Some developers are not sure what category their app should be...

3. Building Your Apps Total Message
Building Your App’s Total Message Some people think marketing your iPhone/iPad app consists of doing a little advertising and a press release. Actually, mar...

4. An effective iPhone iPad app name can help increase your sales
Choose an Effective App Name An effective iPhone/iPad app name can help increase your sales because the buyer does not have to invest as much effort to understand...

5. Your App Store text to help you captivate your readers attention
App Store Text: Lighten It Up In this mobile economy, people are reading less when it comes to their communications. Attention spans are short and, with the crush...

6. Your product website for App Store product page
Build a Simple, Clean Product Website Your product website should be similar in look and feel to your App Store product page. A carryover between the two sites wi...

7. Strive for Immediate Positive Reviews for your Ipad app
Strive for Immediate Positive Reviews There is nothing like getting a good reference. Whether you realize it, we all tend to listen to what other people say about...

8. Gets a positive review by an iPhone iPad app review site
Positive External Reviews Sometimes a developer is lucky in that his or her app gets a positive review by an iPhone/iPad app review site. That review gets picked ...

9. Your iPhone and iPad App Marketing Strategy
Coordinated Marketing Effort The first step is to make sure that all your marketing content uses your newly created unique message, “Your iPhone and iPad Ap...

10. Direct marketing can be done through direct mail marketing or email marketing
Direct Marketing for Your App Direct marketing can be done through direct mail marketing or email marketing. Here we look at the pros and cons of both methods....