On Jul 27, 2008, at 10:52 PM, Daniel Richman wrote:
numbers = [allNumbers componentsSeparatedByString:@"\t"];

You don't own the return value from -componentsSeparatedByString:, so you must retain it if you want it to stick around.

the contents of the array have become other, non string things.

When things become other weird things, that's usually a sign that you forgot to retain something, and so memory got deallocated and reallocated for a different object.

--Andy


_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to