Re: Convert Arrays
Re: Convert Arrays
- Subject: Re: Convert Arrays
- From: Dustin Voss <email@hidden>
- Date: Tue, 21 Oct 2003 16:31:51 -0700
On Tuesday, October 21, 2003, at 10:19 AM, Stiphane Sudre wrote:
myArray=[NSArray
arrayWithObjects:@"It",@"s",@"almost",@"written",@"in",@"the",@"documen
tation",nil];
myMutableArray=[[myArray mutableCopy] autorelease];
myArray=[NSArray arrayWithArray: myMutableArray];
myArray = [myMutableArray copy];
would also work. The "copy" method does immutable copies, if the class
in question has the concept of immutable vs. mutable.
El Martes, 21 octubre, 2003, a las 05:26 PM, Eivind Andersen escribis:
I wondering how one can convert a NSMutableArray to an NSArray and
vice versa.
Can someone help?
_______________________________________________
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.