• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Mutable Copying
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mutable Copying


  • Subject: Mutable Copying
  • From: Francisco Tolmasky <email@hidden>
  • Date: Tue, 12 Aug 2003 20:49:24 -0700

Can someone explain to me the difference in these two examples:

1.
NSMutableArray *array= [[NSMutableArray alloc] init];
//... changes to array
NSMutableArray *array2= [array copy];

2.
NSMutableArray *array= [[NSMutableArray alloc] init];
//... changes to array
NSMutableArray *array2= [array mutableCopy];

Francisco Tolmasky
email@hidden
http://users.adelphia.net/~ftolmasky
_______________________________________________
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.

  • Follow-Ups:
    • Re: Mutable Copying
      • From: The Amazing Llama <email@hidden>
  • Prev by Date: generating escaped representation of string
  • Next by Date: Re: Mutable Copying
  • Previous by thread: Re: generating escaped representation of string
  • Next by thread: Re: Mutable Copying
  • Index(es):
    • Date
    • Thread