You are currently viewing page 1 in Cocoa: What Is It?

Standard introduction stuff: history, tools, frameworks, how to read the book, typographical conventions, preachy discussion of learning.

Below are errata in the same chapter as page 1.
- "the the" should be just "the"
(page 7; 6 pages ahead)

Below are comments in the same chapter as page 1.
Add a Comment of Your Own- Matt J said the following on Jun 21, 2008:
(comment made on this page)
The change from nib to xib is a change from a binary format to an XML format. Oddly, Aaron explains this later in the book, but obviously, there wasn't enough time to change all the references to nibs to xibs. You'll note that when building, Xcode compiles your xibs to nibs. There's no way Apple would or could get rid of the NeXT references. Almost all classes begin with NS! - John Beatty said the following on Jun 26, 2008:
(comment made on this page)
The last paragraph on this page feels out of place - I think it belongs near the bottom of page 3, as the *last* paragraph of "A Little History," just before the "Tools" section. - 58oCOp hi! hice site! said the following on Jul 29, 2008:
(comment made on this page)
58oCOp hi! hice site! - wxch gkrc said the following on Jul 31, 2008:
(comment made on this page)
eypw wrjzgilfx lpumbj cfiu ikmsq bxkr lmpkou - Mohan said the following on Jul 31, 2008:
(comment made on this page)
The OpenGL program does not seem to work for me. It gives a green window. When i debug i can see the pictures drawn. I can see that all entrypoints like reshape, drawRect called. - Mickey said the following on Aug 2, 2008:
(comment made on this page)
Did anyone figure out the challenge 1 in chapter 8. I can't understand what goes in each of the text entry windows in order to sort by string length. I've looked to Mac Docs and there is nearly nothing on key paths.
Help. - Adam said the following on Aug 2, 2008:
(comment made on this page)
In the chapter, "Living with Retain Counts" it doesn't seem like the dealloc method ever gets called. I copied the code as instructed, but when I compile and run the output just shows the lottery numbers and not the "decallocating..." messages in the console. Does anyone have a suggestion? - Adam said the following on Aug 2, 2008:
(comment made on this page)
I found my error. I had set array to nil and then tried to release it:
// Done with 'array'
array = nil;
[array release];
Of course, it should be the other way around:
// Done with 'array'
[array release];
array = nil;
- Barbara said the following on Aug 3, 2008:
(comment made on this page)
Here's a hint for the Chapter 8 question on this page:
You need to fill out the SortKey and Selector fields.
Aaron's hint is that strings have a length method. Combine this with the fact that personName is a string - when you figure out the keypath, but it in the SortKey textfield. Remember - this is one place we do use dot-notation.
As for the Selector field ... The sort key is now a number, not a string, so you don't want caseInsensitiveCompare: as the selector anymore. Look up NSNumber in the documentation and check out its instance variables to find a more appropriate selector. Don't forget that the colon is part of the selector name. - Barbara said the following on Aug 3, 2008:
(comment made on this page)
Apologies -- the "but" should be a "put" ... and I meant look up the instance *methods* for NSNumber. - test said the following on Aug 5, 2008:
(comment made on this page)
test - Stephen said the following on Aug 9, 2008:
(comment made on this page)
On page 108, second paragraph. "NSObject has the the following method" -- the word "the" is printed twice. - Tom D. said the following on Aug 11, 2008:
(comment made on this page)
I am compiling on Xcode3.1 and when I run the Chp. 10 RaiseMan code I am able to save a file but when I try and open a file it is grayed out in the finder window. Has anyone encountered this problem?
Thanks in advance,
Tom - Marc Liyanage said the following on Aug 13, 2008:
(comment made on this page)
I was wondering about one thing in the third edition of the book.
In chapter 30, Core Data relationships, on page 369, the code to manipulate the to-many relationship looks complicated for what it does and I didn't see this kind of code in the Apple docs.
What I did see there is using
- (NSMutableSet *)mutableSetValueForKey:(NSString *)key
and then sticking the new target object into the mutable set. Is this equivalent?
- hpm said the following on Aug 14, 2008:
(comment made on this page)
The "CarLot?" example (building a program without coding in IB) - nice but nearly meaningless (in my opinion). The explanation afterwards about what`s going on behind the curtain is too short.
It would be nice, if this project exists in two version - coded by hand a built with IB.
Furthermore - which messages have I to overwrite to integrate for example sqlite.
Nevertheless a very good book.
hpm
- Mitch Allen said the following on Aug 15, 2008:
(comment made on this page)
Figure 2.14 shows a view of a .nib, which in the latest Xcode is generated as a .xib. I can't get to that kind of view with the xib to drag an Object from the Library on to it. - hpm said the following on Aug 15, 2008:
(comment made on this page)
Hi,
I went back to page 20 (Figure 2.14)
New project of type Cocoa application
Double click on nix-file.
Menue/Tools/Library
I choose NSObject
and drag it without any probem in the window.
Sorry, I don“t know why id does not work in your Xcode !?
hpm - bookmark you thx said the following on Aug 16, 2008:
(comment made on this page)
bookmark you thx - Diego said the following on Aug 18, 2008:
(comment made on this page)
Tom D: I had the same problem with the file open not letting me select a RaiseMan document. You need to add the UTI information to the Info.plist file. Enter the XML shown on page 168-169 in to the Info.plist file.
This site is driven by Techstra. Copyright © 2008. All Rights Reserved.