2008. 6. 7. 22:19
Computation/Cocoa
http://www.informit.com/store/product.aspx?isbn=0321503619
3rd edition:
http://proquest.safaribooksonline.com/9780321562739
-> reading online
2nd edition:
http://catdir.loc.gov/catdir/toc/ecip0414/2004003054.html
google book:
http://books.google.com/books?id=47IMAAAACAAJ
Aaron Hillegass
http://www.bignerdranch.com/
ref.
Learn Objective-C on the Macintosh
By Mark Dalrymple and Scott Knaster
Cocoa Fundamentals Guide: What Is Cocoa?
Cocoa Application Tutorial: Introduction to Cocoa Application Tutorial
Cocoa Guides
http://en.wikipedia.org/wiki/Cocoa_%28API%29
Chapter 1
Cocoa: What Is It?
1p
A Little History
NeXTSTEP
http://en.wikipedia.org/wiki/NEXTSTEP
darwin
http://en.wikipedia.org/wiki/Darwin_(operating_system)
http://www.opendarwin.info/
http://developer.apple.com/opensource/index.html
X window server
http://en.wikipedia.org/wiki/X_Window_System
NeXTSTEP came with a set of libraries and tools to enable programmers to deal with the window manager in an elegant manner. The libraries were called frameworks. In 1993, the frameworks and tools were revised and renamed OpenStep, which was itself later renamed Cocoa.
Cocoa enables your application to receive events from the window server and draw to the screen.
Programming with the frameworks is done in a language called Objective-C.
4p
Tools
Mac OS X Developer Tools (Xcode, Interface Builder)
GNU C compiler (gcc)
GNU debugger (gdb)
Language
Objective-C
Java - portability
Swing - an API for providing a graphical user interface (GUI) for Java programs.
http://en.wikipedia.org/wiki/Swing_%28Java%29
5p
Objects, Classes, Methods, and Messages
An object takes up memory and has variables inside it.
Classes are structures that can create objects. Classes specify the variables that the object has, and they are responsible for allocating memory for the object. We say that the object is an instance of the class that created it.
To call a method, you send the object a message.
6p
Frameworks
A framework is a collection of classes that are intended to be used together. The classes are compiled together into a reusable library of code. Any related resources are put into a directory with the library. The directory is renamed with the extensioin .framework. You can find the built-in frameworks for your machine in /System/Library/Frameworks.
All Cocoa applications use two of these frameworks: Foundation and AppKit.
7p
3rd edition:
http://proquest.safaribooksonline.com/9780321562739
-> reading online
2nd edition:
http://catdir.loc.gov/catdir/toc/ecip0414/2004003054.html
google book:
http://books.google.com/books?id=47IMAAAACAAJ
Aaron Hillegass
http://www.bignerdranch.com/
ref.
Learn Objective-C on the Macintosh
By Mark Dalrymple and Scott Knaster
invalid-file
preview pdf
Cocoa Fundamentals Guide: What Is Cocoa?
Cocoa Application Tutorial: Introduction to Cocoa Application Tutorial
Cocoa Guides
http://en.wikipedia.org/wiki/Cocoa_%28API%29
Chapter 1
Cocoa: What Is It?
1p
A Little History
NeXTSTEP
http://en.wikipedia.org/wiki/NEXTSTEP
darwin
http://en.wikipedia.org/wiki/Darwin_(operating_system)
http://www.opendarwin.info/
http://developer.apple.com/opensource/index.html
X window server
http://en.wikipedia.org/wiki/X_Window_System
NeXTSTEP came with a set of libraries and tools to enable programmers to deal with the window manager in an elegant manner. The libraries were called frameworks. In 1993, the frameworks and tools were revised and renamed OpenStep, which was itself later renamed Cocoa.
Cocoa enables your application to receive events from the window server and draw to the screen.
Programming with the frameworks is done in a language called Objective-C.
4p
Tools
Mac OS X Developer Tools (Xcode, Interface Builder)
GNU C compiler (gcc)
GNU debugger (gdb)
Language
Objective-C
Java - portability
Swing - an API for providing a graphical user interface (GUI) for Java programs.
http://en.wikipedia.org/wiki/Swing_%28Java%29
5p
Objects, Classes, Methods, and Messages
An object takes up memory and has variables inside it.
Classes are structures that can create objects. Classes specify the variables that the object has, and they are responsible for allocating memory for the object. We say that the object is an instance of the class that created it.
To call a method, you send the object a message.
6p
Frameworks
A framework is a collection of classes that are intended to be used together. The classes are compiled together into a reusable library of code. Any related resources are put into a directory with the library. The directory is renamed with the extensioin .framework. You can find the built-in frameworks for your machine in /System/Library/Frameworks.
All Cocoa applications use two of these frameworks: Foundation and AppKit.
7p