Filtering Array Controller and Sorting
Filtering Array Controller and Sorting
- Subject: Filtering Array Controller and Sorting
- From: Peer Allan <email@hidden>
- Date: Tue, 20 Jan 2004 22:20:14 -0600
I have some unexpected behavior in my application that I am attempting to
sort out (and have been unable to thus far).
I have created a table of data with a searchfield following the example for
"Filtering Using a Custom Array Controller"
(
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaBindings/Tas
ks/filtering.html#//apple_ref/doc/uid/20002302) in the online docs. And two
things are happening that I can't find a solution to.
1. the search filter works, but after typing a couple of keys the search
field suddenly loses focus and I have to re-click in the field to continue
typing. For example, if I want to type "medicine", I may get "med" (more or
less depending on how fast I type) into the search field before I lose
focus). Could someone let me know why this is happening?
2. when my initial list of data is in the table the clicking on the column
headers will not sort the data. But if I use the search to get a filtered
list, and then click the column headers it will sort correctly. If I
return to the unfiltered list the sorting will not work.
Any help on either of these problems would be greatly appreciated. Thanks.
Peer
_______________________________________________
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.