• 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: Search like Address Book?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Search like Address Book?


  • Subject: Re: Search like Address Book?
  • From: Scott Anguish <email@hidden>
  • Date: Sun, 12 Aug 2001 01:38:32 -0400

On Saturday, August 11, 2001, at 08:37 AM, Mark's Studio wrote:
so when i use selectedRow in the tableview for accessing the mainArray
its not the same as displayArray.

the displayArray is the datasource for the tableview, and when the
mainArray is changed the displayArray is updated.
and everything works fine except when they are out of sync.

what's the way to do this?


use the selectedRow to give you the object in the displayArray, and use that directly... if you need to know the index of the selected item from displayArray in mainArray you can use this

index=[mainArray indexOfObjectIdenticalTo:[displayArray objectAtIndex:selectedRow]]


References: 
 >Search like Address Book? (From: "Mark's Studio" <email@hidden>)

  • Prev by Date: Tracking animation in multiple windows using NSTimer vs NSThread?
  • Next by Date: Reading compiled applescript from file
  • Previous by thread: Search like Address Book?
  • Next by thread: DO & Thread problems
  • Index(es):
    • Date
    • Thread