• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Core Data search box: how to preserve selection while
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Apple's NSPersistentDocument Tutorial and MOCs
  • Next by Date: Re: Problem with nested tags in xml
  • Previous by thread: Re: project organization and framework linking
  • Next by thread: Thread programming
  • Index(es):
    • Date
    • Thread