Re: newbie questions on NSString* as a class attribute

2009-04-22 Thread Mike Abdullah
On 22 Apr 2009, at 02:15, Andrew Farmer wrote: On 21 Apr 09, at 17:53, Wayne Shao wrote: Let's say that I have a member variable NSString* logFilePath, I do init in the initWith method as logFilePath = [[some_other_path stringByAppendingPathComponent:@"log.txt"] copy]; The ques

Re: newbie questions on NSString* as a class attribute

2009-04-21 Thread Andrew Farmer
On 21 Apr 09, at 17:53, Wayne Shao wrote: Let's say that I have a member variable NSString* logFilePath, I do init in the initWith method as logFilePath = [[some_other_path stringByAppendingPathComponent:@"log.txt"] copy]; The question is, if I do not call copy, is it true that l

newbie questions on NSString* as a class attribute

2009-04-21 Thread Wayne Shao
Let's say that I have a member variable NSString* logFilePath, I do init in the initWith method as logFilePath = [[some_other_path stringByAppendingPathComponent:@"log.txt"] copy]; The question is, if I do not call copy, is it true that logFilePath could be subject to be GC'ed? Anothe