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 (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]

Reply via email to