• 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: Herr Witten <email@hidden>
  • Date: Fri, 30 Jan 2004 21:21:33 -0500

Hey, thanks for responding, I appreciate it, but I have provided just
the material that is important. I had said that all objects with the
same representation are deleted by these messages. Any more might have
been clearer but nonetheless superfluous. The point is, I'm having
trouble with methods that are not mine.

The best response to my question would be "I've used these methods and
had no problems, here is what I have done..."

My situation is as follows:

I am providing drag and drop capabilities in my tables so that rows can
be moved around. Thus, in the the

- (BOOL)tableView:(NSTableView *)tableView acceptDrop:(id
<NSDraggingInfo>)info row:(int)row
dropOperation:(NSTableViewDropOperation)operation

method, I need to insert the "new" objects (unarchived) and remove the
"old" objects afterward. To remove the old objects, I chose the
removeObjects: method of the ArrayController, but the trouble then
ensues, as it removes both the new and the old. I've also tried working
directly with the content, but that causes problems because of
****internal**** behavior involved with the associated table. Neither
can use indexes, because there is a modification to the array.

In short, I have had a lot of trouble, and I expect more from Apple.
Everything else is scalable, customizable, bendable to every will and
whim. These seem to be troublesome.

On 30 Jan 2004, at 8:01 PM, mmalcolm crawford wrote:

> On Jan 30, 2004, at 4:40 PM, Herr Witten wrote:
>
>> Apparently, the removeObject: and removeObjects: methods are the
>> culprits. I used them in overriding a method, so I got rid of them
>> and things work correctly. However, I have to use them elsewhere,
>> which poses a gigantic problem. What is there to be done?
>>
> Again you're rather short on details...
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSArrayController Funkyness
      • From: Shawn Erickson <email@hidden>
    • Re: NSArrayController Funkyness
      • From: Daryn <email@hidden>
References: 
 >NSArrayController Funkyness (From: Herr Witten <email@hidden>)
 >Re: NSArrayController Funkyness (From: mmalcolm crawford <email@hidden>)
 >Re: NSArrayController Funkyness (From: Herr Witten <email@hidden>)
 >Re: NSArrayController Funkyness (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Warning with precompiled headers
  • Next by Date: Re: NSArrayController Funkyness
  • Previous by thread: Re: NSArrayController Funkyness
  • Next by thread: Re: NSArrayController Funkyness
  • Index(es):
    • Date
    • Thread