开发者

iphone, get the object count without performing a fetch?

I seem to recall that it's possible to return the resulting object count from an NSPredicate in CoreData without actually performing a fetch, but I can't find any reference to this.

Can someone confirm that I wasn't dreaming (sad dream to have!), a开发者_如何学运维nd would this be safe to do in another thread?

Thanks

Andy


See this answer to this question. You just need to add your predicate to the fetch request in the provided code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜