Re: TableView insanity... please help!!
Re: TableView insanity... please help!!
- Subject: Re: TableView insanity... please help!!
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 28 Dec 2004 15:53:16 -0700
On Dec 28, 2004, at 3:13 PM, John Draper wrote:
I've originally assumed that when this returns an array, I can now
have control
over it and keep it for whatever.
You can only do that if you retain it. If you did not create the object
through -init (and variations), -copy (with or without a zone),
-mutableCopy, or +new, then the object is in the autorelease pool and
will be deallocated whenever the pool is popped.
It appears that something (God knows what) is being de-allocated before
being used. I have NO IDEA what it is.... nor do I have any plan or
means
to find out, since it calls some internal Apple code, which of
course I have
NO source code for.
Actually, it doesn't require the source. Check out Foundation's
NSDebug.h header file, specifically the NSZombieEnabled option.
Also, I'm wondering: Why did you use a dictionary as a table data
source? Usually, if you have a table with multiple columns, then you
would use an array of dictionaries or some other keyed collection
object, and have the table column identifiers correspond to the key of
the object they are to display.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden