What is rootNode?
Or, more importantly, does it retain the object you pass it in
setObject?
The point:
[NSArray arrayWithObjects:...] autoreleases the array it creates so
if you don't retain it and neither does rootNode, well, its gonna
disappear...
Wain
On 30 Mar 2007, at 16:14, Ryan Marsh wrote:
Hello All,
I apologize in advance for such a newbie question.
Why do objects created with convenience methods get auto-released
when I add them to a collection?
This simple example from the init of an NSOutlineView datasource: