• 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: NSArrayController Funkyness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArrayController Funkyness


  • Subject: Re: NSArrayController Funkyness
  • From: email@hidden
  • Date: Fri, 16 Jan 2004 13:10:22 -0500

When I remove an object from the sorted list so that the last (blank-screwball) line does not get shown due to the length of the list, then return to the unordered list, the blank line is in the unordered list too. However, if I remove another object from the ordered list, the blank line disappears, and things function as normal.

On 15 Jan 2004, at 2:43 PM, email@hidden wrote:

The trouble comes when I try to remove objects from the table. I have a
button that has the array controller subclass as its target and the
remove: method as its action. When this button is pressed and the
unordered list (the actual content array) is displayed, this works just
fine. However, when the ordered list is displayed, the table thinks
that there is one more object in the list, leaving a blank space at the
bottom of the table and giving errors (when the blank space tries to
display itself). For instance, if there are 47 items displayed and the
last one is deleted, a blank space appears and we get:

*** -[NSCFArray objectAtIndex:]: index (46) beyond bounds (46)
*** malloc[842]: Deallocation of a pointer not malloced: 0xbfffe160;
This could be a double free(), or free() called with the middle of an
allocated block; Try setting environment variable MallocHelp to see
tools to help debug
_______________________________________________
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.

References: 
 >NSArrayController Funkyness (From: email@hidden)

  • Prev by Date: Re: NSArrayController Funkyness
  • Next by Date: InterfaceBuilder: a nice touch
  • Previous by thread: Re: NSArrayController Funkyness
  • Next by thread: [Fixed] NSArrayController Funkyness
  • Index(es):
    • Date
    • Thread