• 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
Determine keys used in NSPredicate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Determine keys used in NSPredicate


  • Subject: Determine keys used in NSPredicate
  • From: Trygve Inda <email@hidden>
  • Date: Sat, 19 Oct 2013 21:44:00 -0700
  • Thread-topic: Determine keys used in NSPredicate

I have an array of objects. These objects may have some dynamic properties
handled with valueForUndefinedKey.

If I create a predicate along the lines of:

myObject.proertyA = something AND
myObject.proertyB = somethingElse AND
myObject.dynamicPropertyA = someOtherThing


How can I look at myPredicate and determine that it uses dynamicPropertyA?

Is it enough  and safe to use [myPredicate predicateFormat] and then search
the resulting string for dynamicPropertyA?

The reason is that my dynamic properties can be removed and I would need to
go and find all the NSPredicates that are using a property that is about to
go away.


Thanks,

Trygve



_______________________________________________

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: Determine keys used in NSPredicate
      • From: Chris Hanson <email@hidden>
    • Re: Determine keys used in NSPredicate
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: modal window and quit menu item
  • Next by Date: Re: Determine keys used in NSPredicate
  • Previous by thread: Re: Setting key equivalent for menus depending on window
  • Next by thread: Re: Determine keys used in NSPredicate
  • Index(es):
    • Date
    • Thread