Chapter 5. Starting a Cocoa Application
In this chapter, we make the Linrg
tool the heart of an application using the Mac OS X graphical human interface. Our framework for the application will be Cocoa, the application toolkit developed from NeXTStep and OpenStep; the language will be Objective-C.
Plan of Action
Program Tasks
We’ll use Linrg
unchanged for the computational part of the program. Our front-end program will therefore have the tasks of
Storing a list of x and y data pairs
Allowing the user to enter and edit the data-pair list
Passing the data-pair list to
Linrg
Reading the results from
Linrg
and displaying them to the user
Note
Keeping Linrg
as a separate executable is admittedly a strange decision: The code is so simple, it would be easier ...
Get Step into Xcode Mac OS X Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.