• 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
NSPredicate & Editor questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPredicate & Editor questions


  • Subject: NSPredicate & Editor questions
  • From: Dave DeLong <email@hidden>
  • Date: Tue, 11 Aug 2009 18:51:33 -0600

Hey everyone,

I'm about to embark on understanding NSRule/PredicateEditors but before I get too deep into the code, I wanted to ask a couple questions.

I'm hoping to create an interface whereby the user can create an NSPredicate and then come back and edit it later. From what I've understood from the documentation and PredicateEditorSample, it seems that the appropriate way to do this would be to construct an NSCompoundPredicate from the editor. That way when the user goes to edit the predicate, I can easily break it up into its constituent parts by using the -subpredicates method of NSCompoundPredicate. Is that correct?

If that is correct, would I then have to determine with NSPredicateEditorRowTemplate I'd need to use by examining the subpredicate itself?

Or is there a simpler way to do this?

I appreciate any insight you have.

Thanks!

Dave DeLong
_______________________________________________

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


  • Follow-Ups:
    • Re: NSPredicate & Editor questions
      • From: Peter Ammon <email@hidden>
  • Prev by Date: Re: Intel Mac prefpane error
  • Next by Date: Re: Undo's setActionName: and Core Data
  • Previous by thread: RE: NSNumberFormatter & Currency Symbol
  • Next by thread: Re: NSPredicate & Editor questions
  • Index(es):
    • Date
    • Thread