magicalpanda / MagicalRecord

Super Awesome Easy Fetching for Core Data!
Other
10.8k stars 1.79k forks source link

MR_findFirstByAttribute have MR_nonnull searchValue. How to search for nil values? #1177

Open rojo69 opened 8 years ago

rojo69 commented 8 years ago

How come the search value used for MR_requestFirstByAttribute is MR_nullable but MR_nonnull for MR_findFirstByAttribute? MR_findFirstByAttribute call MR_requestFirstByAttribute. I would like to be able to use MR_findFirstByAttribute to look for nil attributes without getting a warning.

tonyarnold commented 8 years ago

It's probably an oversight — there are a lot of telescoping methods in there.

For the time being, can you specify [NSNull null] as the search value?

rojo69 commented 8 years ago

Yes, things work. It is just an annoying compiler warning.

kevin-- commented 8 years ago

+1