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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]