Re: Basic Array Access Strategy
Re: Basic Array Access Strategy
- Subject: Re: Basic Array Access Strategy
- From: John Stiles <email@hidden>
- Date: Thu, 20 Jan 2005 17:32:12 -0800
Sorry, I haven't experimented enough with bindings to be able to help
you out with any clever ideas. I think your idea would work, but
there's probably some even cooler technique that I don't know.
On Jan 20, 2005, at 5:30 PM, Richard Patterson wrote:
Thanks for responding so promptly.
If I have set up my document application with NSTableView which is
using an array controller and bindings, do I need to copy the data
from the array into a dictionary in order to get random access to it?
Richard Patterson
Illusion Arts
6700 Valjean Avenue
Van Nuys, CA 91406
818 901-1077
FAX: 818 901-1995
email@hidden
On Jan 20, 2005, at 5:19 PM, John Stiles wrote:
If you stored them in a structure other than an array, you could
query for a certain wavelength without having to sort or walk the
array--i.e., a dictionary.
Now if you wanted to find a range--say, all entries between
wavelength 440 and 460--then you'd need to get a little bit more
clever. If your data was sorted, a binary search would be one way to
go.
_______________________________________________
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