How to compare objects in NSPredicate format string

Discussion in 'Mac Programming' started by i.yalovecky, Jul 19, 2010.

  1. i.yalovecky macrumors member

    Feb 24, 2010
    At first round i got object with parent = nil, then i want to get other object with parent equal to previously fetched object, but how i must to design predicate?
    this not works:
    parent == 0x1004423e0 and title == 'a leaf'
    parent.objectID == (0x100165760 <x-coredata:///Item/tCFB2D3BF-66F2-480A-BBC3-3699C25E70AE2>) and title == 'a leaf'
    parent.objectID == 0x100163870 and title == 'a leaf'
    but this works
    parent == nil and title == 'root'
  2. seepel macrumors 6502


    Dec 22, 2009
    It's not very clear to me what exactly you are trying to do, could you elaborate a bit?

Share This Page