Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

What happened to initWithModel: and what did it do? #19

Closed
tomredman opened this issue Feb 10, 2014 · 3 comments
Closed

What happened to initWithModel: and what did it do? #19

tomredman opened this issue Feb 10, 2014 · 3 comments
Labels

Comments

@tomredman
Copy link

I'm reviewing @ashfurrow's C-41 MVVC project, and notice he's using - (instancetype)initWithModel:(id)model; which is included with his version of RVM. However the method is missing from the latest version. So:

  1. What happened to the method?
  2. What did it do (i.e., what was the model)?
@ashfurrow
Copy link
Member

The view model used to contain a generic id model object on every instance, which you could override with your own type later on. But not all view models have a model, and the id type, along with its readonly status, caused some compile-time funkiness. So it was removed: #11

In my view models now, which use the updated repo, I specify my own model with its own type when appropriate. Hope that clears things up!

@tomredman
Copy link
Author

Excellent, thanks.

@eremzeit
Copy link

Thanks this was helpful to me too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants