Re: Filtering NSTableView core data
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