cocoa for dummies question
cocoa for dummies question
- Subject: cocoa for dummies question
- From: Rowland Carson <email@hidden>
- Date: Sun, 12 Oct 2003 15:02:46 +0100
Hello - new subscriber here.
I've searched the archives but cannot find a reference to my problem.
I bought the Erick Tejkowski book "Cocoa Programming for Dummies" and
worked my way through it. I've found it generally useful and all
projects worked as advertised, (although I had to overcome numerous
misleading typos on the way) until I got to near the end of Chapter
11: Text.
I got everything working except the last part, "Retrieving Text" ie
opening an existing text file. When I try to open a file, the
dialogue box seems to work OK and lets me select a text (or rich
text, same behaviour) file but when I click on the "Open" button the
project quits.
This happens with the project I built myself from scratch, and also
with the "authorised version" of the project downloaded from the
Dummies website.
Environment:
15" Ti 1GHz PowerBook with 1GB memory running OS X 10.2.6, Project
Builder 2.0.1 (July 2002 Developer Tools), Interface Builder 2.3
(v283).
I am using the "single window" preference of Project Builder to stay
in keeping with the book examples, and in the build tab at the top
right there are some messages that may help to diagnose what I'm
doing wrong.
One thing I should mention first, that has happened with, I think,
every project I've built, is that it won't build on the first try.
The journal line at the bottom left of the window says "build failed
(1 error)" and in the top RH build tab, I get a message in red "Build
failed (see build log for details)" but I have yet to find where that
build log is hidden! Anyway, just clicking on the Build icon (or
Build & debug, or Build & run, same behaviour) for a second time
without changing anything, gets a successful build. If it's a Build &
Run, after the successful build, the build tab contains the message
"## Component Manager: attempting to find symbols in a component
alias of type (regR/carP/x!bt)", but that doesn't seem to have
stopped any of the previous projects working as advertised.
When the textproject project quits, the journal line at the bottom
left says "textproject exited normally", but in the build tab the
message "textproject has exited due to signal 10 (SIGBUS)." appears.
Can anyone help? Am I doing something stupid? Do I need an update to
Project Builder or Interface builder? Do I need a different book? My
immediate aim in learning Cocoa is to put a nice front on an old
Think C program I wrote under System 7 to do some special-purpose
text parsing, with a very crude glass-teletype interface. An
important aspect of that program is the ability to select and open
text files!
regards
Rowland
--
| Wilma & Rowland Carson <
http://home.clara.net/rowil/>
| <email@hidden> ... that's Rowland with a 'w' ...
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.