Re: scannerWithString
Re: scannerWithString
- Subject: Re: scannerWithString
- From: Ondra Cada <email@hidden>
- Date: Fri, 24 May 2002 16:08:07 +0200
On Friday, May 24, 2002, at 02:47 , Frank Blome wrote:
But unfortunately I did not find the method to convert a NSArray to a
NSMutableArray at my first view. But I think there must be a way.
'Course there is, as simple as
NSMutableArray *ma=[immutablearray mutableCopy];
Note the new array is *not* autoreleased. Often it's what you want, but
sometimes you need
NSMutableArray *ma=[[immutablearray mutableCopy] autorelease];
lest you have leaks.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.