tailieunhanh - Assignment 1B Doll/Cannistraro

Assignment In this assignment you will be getting your feet wet with Objective-C by writing a small command line tool. You will create and use various common framework classes in order to become familiar with the syntax of the language. The Objective-C runtime provides a great deal of functionality, and the gcc compiler understands and compiles Objective-C syntax. The Objective-C language itself is a small set of powerful syntax additions to the standard C environment. | CS193P Spring 2009 Assignment 1B Doll Cannistraro Assignment 1B - WhatATool Part I Due Date This assignment is due by 11 59 PM April 9. Assignment In this assignment you will be getting your feet wet with Objective-C by writing a small command line tool. You will create and use various common framework classes in order to become familiar with the syntax of the language. The Objective-C runtime provides a great deal of functionality and the gcc compiler understands and compiles Objective-C syntax. The Objective-C language itself is a small set of powerful syntax additions to the standard C environment. To that end for this assignment you ll be working in the most basic C environment available -the main function. This assignment is divided up into several small sections. Each section is a mini-exploration of a number of Objective-C classes and language features. Please put each section s code in a separate C function. The main function should call each of the section functions in order. Next week will add more sections to this assignment. IMPORTANT The assignment walkthrough begins on page 3 of this document. The assignment walkthrough contains all of the section-specific details of what is expected. The basic layout of your program should look something like this import Foundation sample function for one section use a similar function per section void PrintPathlnfoQ Code from path info section here int main int argc const char argv NSAutoreleasepool pool NSAutoreleasePool alloc init PrintPathInfoO Section 1 PrintProcessInfoQ Section 2 PrintBookmarkInfo Section 3 PrintIntrospectionInfoQ Section 4 pool release return 0 Testing In most assignments testing of the resulting application is the primary objective. In this case testing grading will be done both on the output of the tool but also on the code of each section. We will be looking at the following 1. Your project should build without errors or warnings. 2. Your project should run without crashing. .