swift - Is it possible to make a generic Realm Results Object? -


i trying replicate nsfetchedresults controller realm backing. problem realmswift framework, cannot make generic results object. wants specific type.

var objects = results<object> = realm().objects(object)

compiles, crashes when controller subclass presented.

i'm not sure how code compiles there 2 assignments in statement:

var objects = results<object> = realm().objects(object) 

calling realm().objects(object) returns generic results, specialized on object, results generic.


Comments

Popular posts from this blog

angularjs - Redirect to a new template in angular js -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

Desktop Launcher for Python Script Starts Program in Wrong Path (Linux) -