Re: Basic Obj-C Question on Memory and Strings

2008-08-08 Thread Charles Steinman
--- On Thu, 8/7/08, Matt Keyes <[EMAIL PROTECTED]> wrote: > -(void)foo { > SomeClass *cls = [[SomeClass alloc] init]; > [cls DoTheStringThing:@"Here's a fun > string."]; > > //HERE IS THE QUESTION: > //This causes a halt in the debugging and will > sometimes give a _BAD_ADDRESS

Basic Obj-C Question on Memory and Strings

2008-08-07 Thread Matt Keyes
Hello again, I have two basic Obj-C string question, please see the code below: //.h file @interface SomeClass : NSObject { @private NSMutableString *_someString; } @property (nonatomic, retain) NSMutableString *someString; -(void)DoTheStringThing:(NSString *)aString; @end //.m file: