RE: NSMutableArray morphs itself into an NSArray?
RE: NSMutableArray morphs itself into an NSArray?
- Subject: RE: NSMutableArray morphs itself into an NSArray?
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Mon, 8 Mar 2004 14:07:10 -0500
>
If you use +array then the mutable array will be put in the
>
auto-release pool. It won't get auto-released -- because you retain it
>
-- but there is no need for it to go in the auto-release pool at all.
I think you meant to say the array won't get "dealloced." The array most
certainly will get autoreleased, and its retain count will be reduced. But
if another object has retained it, it won't be dealloced because its retain
count will be > 0.
Jonathan
_______________________________________________
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.