On Oct 19, 2013, at 9:44 PM, Trygve Inda <cocoa...@xericdesign.com> wrote: > 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?
Once you have an NSPredicate, you can use the various methods on it and its subclasses to recourse through the predicate and find any key path expression objects, and get the key paths they use. Doing so doesn't rely on the result of -predicateFormat and it uses entirely public API. -- Chris _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com