Re: Search like Address Book?
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]]