Re: Deletes Object on Remove option
Re: Deletes Object on Remove option
- Subject: Re: Deletes Object on Remove option
- From: mmalcolm crawford <email@hidden>
- Date: Sun, 2 Apr 2006 22:46:37 -0700
On Apr 2, 2006, at 12:59 PM, BK wrote:
Below is the code I'm using. The method
moveObjectsInArrangedObjectsFromIndexes is from some Apple sample
code for dragging and dropping rows within the same table view,
something I'm trying to do. If I use the code below, nothing
happens when I drag and drop within the same table view. However,
if I comment out setDeletesOnRemove and uncheck "Deletes Object on
Remove" in IB, it works! Any hints as to where to look next would
be appreciated.
The moveObjectsInArrangedObjectsFromIndexes: method in my example is
implemented in a subclass of NSArrayController, so
-(void) moveObjectsInArrangedObjectsFromIndexes:(NSIndexSet*)indexSet
toIndex:(unsigned int)insertIndex
{
[self setDeletesOnRemove:timeLineController deletesOnRemove:NO];
would be
-(void) moveObjectsInArrangedObjectsFromIndexes:(NSIndexSet*)indexSet
toIndex:(unsigned int)insertIndex
{
[self setDeletesOnRemove:self deletesOnRemove:NO];
When I use your code and substitute that, it works.
mmalc
_______________________________________________
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