• 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
Re: TableView insanity... please help!!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >TableView insanity... please help!! (From: John Draper <email@hidden>)

  • Prev by Date: Re: How to obtain measurement unit setting
  • Next by Date: Re: TableView insanity... please help!!
  • Previous by thread: TableView insanity... please help!!
  • Next by thread: Re: TableView insanity... please help!!
  • Index(es):
    • Date
    • Thread