• 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: Deletes Object on Remove option
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Deletes Object on Remove option (From: email@hidden)
 >Re: Deletes Object on Remove option (From: mmalcolm crawford <email@hidden>)
 >Re: Deletes Object on Remove option (From: BK <email@hidden>)

  • Prev by Date: how to bypass............ical and address book.........to interact with entourage using sync services
  • Next by Date: get window server?
  • Previous by thread: Re: Deletes Object on Remove option
  • Next by thread: Zombie: XCode detects a phantom file that I can't find.
  • Index(es):
    • Date
    • Thread