Re: Core Data search box: how to preserve selection while
Re: Core Data search box: how to preserve selection while
- Subject: Re: Core Data search box: how to preserve selection while
- From: Steve Steinitz <email@hidden>
- Date: Thu, 13 Nov 2008 12:29:21 +1100
Hi Arthur,
You wrote,
When the user searches for some item, the selection in the table is
not preserved, which causes the rest of the application to behave
unexpectedly. How can I preserve this selection, and make the user
select a new item explicitly also when using the search box?
If you want to preserve the selection even if the search would
not otherwise include it then I think you'll need to write your
own subclass of NSArrayController. mmalc wrote Filtering
Controller which preserves a newly added object even if the
search wouldn't otherwise include it.
I'm not saying it will be easy but you can get mmalc's excellent
example here
http://homepage.mac.com/mmalc/CocoaExamples/controllers.html .
I've used his concept as a base for a wide range of array filtering.
Cheers,
Steve
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden