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

Re: Row moving [source]


  • Subject: Re: Row moving [source]
  • From: mmalcolm crawford <email@hidden>
  • Date: Mon, 2 Feb 2004 10:30:05 -0800

This turns out not to be the case:
<http://homepage.mac.com/mmalc/CocoaExamples/SearchFieldMove.zip>

mmalc


On Feb 2, 2004, at 8:26 AM, Herr Witten wrote:

The problem with doing this, though, is that the table will not be updated properly. When you use the controller methods, only then does the table know to update.

On 2 Feb 2004, at 3:36 AM, mmalcolm crawford wrote:

- (void)moveObjectFromIndex: (unsigned)index toIndex: (unsigned)newIndex
{
if (index == newIndex)
return;

NSMutableArray *content = [self content];
id theObject = [content objectAtIndex:index];
[content insertObject:theObject atIndex:newIndex];
[content removeObjectAtIndex: (index < newIndex) ? index
: index + 1];
}
_______________________________________________
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: Row moving [source]
      • From: Herr Witten <email@hidden>
References: 
 >Row moving [source] (From: Herr Witten <email@hidden>)
 >Re: Row moving [source] (From: mmalcolm crawford <email@hidden>)
 >Re: Row moving [source] (From: Herr Witten <email@hidden>)

  • Prev by Date: Re: Packager
  • Next by Date: Re: Hyphenation?
  • Previous by thread: Re: Row moving [source]
  • Next by thread: Re: Row moving [source]
  • Index(es):
    • Date
    • Thread