Posts by Ronan Rodrigo Nunes • 76 points
3 posts
-
1
votes2
answers150
viewsA: Is it possible for a Closure (Swift) to capture reference of the instance of the object that executes it?
It seems that the code that you have pasted is not complete. But by what you have written, the. class Field { var name: String? var validate: (() -> Bool)? } class MyClass { var field: Field {…
-
2
votes1
answer111
viewsA: Consult sqlite database created by core data
The bank file will be in the bowels of the simulator. To find this file you have two options. In the terminal you do the following: find ~/Library/Developer/CoreSimulator/Devices -name "<Nome do…
-
3
votes1
answer109
viewsQ: Limit Aggregation by grouped item in Mongo
I have a collection composed as follows, only with much more data. { _id: ObjectId("db759d014f70743495ef1000"), tracked_item_origin: "winword", tracked_item_type: "Software", machine_user:…