• 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
Automatically generated predicate row templates for to-many key?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Putting an image on a CALayer
  • Next by Date: Re: How to draw a Recessed Button Shadow
  • Previous by thread: Re: Modifying NSDatePicker for automatically generated predicate row templates
  • Next by thread: Problems when putting a window between desktop and desktop icons
  • Index(es):
    • Date
    • Thread