drewmccormack / ensembles

A synchronization framework for Core Data.
MIT License
1.63k stars 132 forks source link

Block variable instead of CDELogCallbackFunction for logging? #257

Closed xjki closed 7 years ago

xjki commented 7 years ago

Wouldn't it be better (easier to interop with objective-c) if instead of using function parameter for CDESetLogCallback block variable would be used instead? Just a suggestion.

drewmccormack commented 7 years ago

It may be slightly easier, I guess. It's really a pro feature anyway, which most people will not use, and I think the sort of devs that will want to use that will know how to use function pointers.

Actually, I think the main reason to use the function is that that is what NSLog is. This was intended as a way to use something other than NSLog.