CharacterAtIndex method?

2008-12-22 Thread Richard S. French
I am receiving a compiler warning: ³NSString may not respond to ­characterAtIndex² from the following code. This is from MathPaper ­ Chapter 12 of Building Cocoa Apps. Any help is appreciated. Thanks. - (void)appendString:(NSString *)string { int i; for (i=0;i<[string length];i++) {

MathPaper (Chapter 10) fails

2008-12-20 Thread Richard S. French
MathPaper project ­ chapter 10 in Oreilly¹s ³Building Cocoa Applications² fails with the following error: ³2008-12-20 11:23:59.664 MathPaper[517] *** -[NSCFDictionary setObject:forKey:]: attempt to insert nil value² Note that I am using Xcode 2.4.1. I also have the evaluator copied under MathPaper

Distributing apps

2008-12-10 Thread Richard S. French
I have found a lot of Cocoa books and tutorials about writing applications. I haven¹t found any instructions as to how to put that application into an icon that can be run when clicked on your desktop or downloaded by others. Please let me know if I¹ve missed it. Thanks, Richard. __

BOOL value in Dictionary

2008-11-21 Thread Richard S. French
How does one get a boolean value from a dictionary object? My XML dictionary contains the value under the given key. Should this be retrieved as NSNumber or some other object? I am trying to set the state of a checkbox button based on the value as below: // return syntax coloring swi

Table scroll bars

2008-11-20 Thread Richard S. French
In Interface builder I have a TableView that I want to stay fixed in relation to items above and below. The table does not show any scroll bars until I resize the window and the items above and below sometimes get overlaid. How do I fix this in IB? I¹ve tried changing the size on NSScrollView in th

BAD_EXC_ACESS

2008-11-20 Thread Richard S. French
My program compiled and ran once. Appeared that possible run away where table view was just being populated over and over again. I did a force quit. Now I am getting a debug error of ³BAD_EXC_ACCESS². All that¹s displayed on the debug screen is greek to me. How do I determine the error and correct?

Plist -> array -> tableview

2008-11-20 Thread Richard S. French
How does one get plist data into an array to be displayed in a tableview? Thanks, Richard. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-ad

Plist to tableview

2008-11-19 Thread Richard S. French
Newbie question: How does one import an array of values from a dictionary (plist) and display on a window? It seems that the plist has to be translated to XML data and every byte read into an array. How does one then select just certain members where the plist contains an array under a key? I am tr