Automatically generated predicate row templates for to-many key?
Automatically generated predicate row templates for to-many key?
- Subject: Automatically generated predicate row templates for to-many key?
- From: "Barry Wark" <email@hidden>
- Date: Tue, 21 Oct 2008 09:41:29 -0700
Continuing my adventures with NSPredicateEditor...
In my Core Data managed object model, I have an entity Foo with a
to-many relationship (with a to-many inverse) to entity Baz named baz.
Baz has a string property named "tag". When I use
[NSPredicateRowEditorTemplate templatesWithAttributeKeyPaths:[NSArray
arrayWithObject:@"baz.tag"] inEntityDescription:FooDescription] to
create the row editors for an NSPredicateEditor, the result contains
(as expected) a row template like
[Popup: baz.tag] [Popup: Contains|is|is not|...] [TextField]
When I select "Contains" from the popup, a query with the predicate
works as expected. If I choose any of the other popups (e.g. "is"), I
get the following error: "to-many key not allowed here". Can I use
[NSPredicateRowEditorTemplate
templatesWithAttributeKeyPaths:inEntityDescription:] or do I have to
build the row editor manually?
Again, thanks for any info or pointers,
Barry
_______________________________________________
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