• 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: Filtering NSTableView core data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filtering NSTableView core data


  • Subject: Re: Filtering NSTableView core data
  • From: mmalc crawford <email@hidden>
  • Date: Mon, 24 Jul 2006 23:10:13 -0700


On Jul 24, 2006, at 10:36 PM, Rex Fernando wrote:

I have a core data application where I need to be able to filter a NSTableView according to the name attribute, which is a string, and the body attribute, which is rtfd data. I can filter according to name just fine by making an NSPredicate and setting the filter predicate of the array controller that is bound to the table view to the predicate that I created. The problem is making a string from each element's rtfd data, and filtering by that, too.

If this is going to be a frequent operation, probably the most efficient approach will be to create a transient String attribute for your entity that is lazily derived from and dependent upon the string value of the attributed string (RTFD data).


mmalc

_______________________________________________
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


References: 
 >Filtering NSTableView core data (From: Rex Fernando <email@hidden>)

  • Prev by Date: Re: Filtering NSTableView core data
  • Next by Date: Re: Environment/permissions on NSTask-launched app
  • Previous by thread: Re: Filtering NSTableView core data
  • Next by thread: Problems with NSAffineTransform
  • Index(es):
    • Date
    • Thread