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?

Another question, if I have the  @" " string assigned to a global constant,
is it true that I do not need to copy in that case?

TIA,
Wayne
_______________________________________________

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-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to