Re: NSArrayController Funkyness
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.