Re: Making Array Pointers Global
Re: Making Array Pointers Global
- Subject: Re: Making Array Pointers Global
- From: Ondra Cada <email@hidden>
- Date: Fri, 5 Apr 2002 12:03:03 +0200
On Friday, April 5, 2002, at 05:04 , Frederick C. Lee wrote:
<*** local***> lengths = [NSArray arrayWithObjects:@"Points",@"Picas"
,@"Inches",@"Feet",@"Yards",@"Rods",@"Miles"
...
I've noticed that the 'local' way automatically RELEASES the array when
the method/function exits, so it's NOT persistant.
Of course, that't the very well documented behaviour of autoreleasing.
It is IMHO worth noting that the local way releases the array somewhat
LATER (when the appropriate pool is released) so that the array (or any
autoreleased object) can be returned from the method if you desire so.
---
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.