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

Re: NSArrayController remove:


  • Subject: Re: NSArrayController remove:
  • From: Tore Halset <email@hidden>
  • Date: Tue, 12 Sep 2006 15:40:06 +0200

On Sep 12, 2006, at 15:33, I. Savant wrote:

This seems very wrong. :-) Without seeing your project, I'm at a loss. If your column(s) is/are bound correctly, the remove: method should remove whatever's selected. You get this functionality for free.

Ok. Thanks anyway.

Are you sure you're not manipulating the content or selection of the array controller (or even the table view) in code anywhere?

I manipulate the content of the master array controller with the following code:


NSArray *rows = ...
[queryResultController removeObjects:[queryResultController arrangedObjects]];
[queryResultController addObjects:rows];


The first line is to remove all current objects and the second is to set the new content. Perhaps this is not the correct way to fill up a array controller with objects?

 - Tore.
_______________________________________________
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


  • Follow-Ups:
    • Re: NSArrayController remove:
      • From: "I. Savant" <email@hidden>
References: 
 >NSArrayController remove: (From: Tore Halset <email@hidden>)
 >Re: NSArrayController remove: (From: "I. Savant" <email@hidden>)
 >Re: NSArrayController remove: (From: Tore Halset <email@hidden>)
 >Re: NSArrayController remove: (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: NSArrayController remove:
  • Next by Date: Re: NSArrayController remove:
  • Previous by thread: Re: NSArrayController remove:
  • Next by thread: Re: NSArrayController remove:
  • Index(es):
    • Date
    • Thread