Re: What type category should I use for my model in Swift?

2016-06-02 Thread Quincey Morris
On Jun 2, 2016, at 08:55 , Daryle Walker wrote: > > My model in mind is dumb data, so a struct seems appropriate. The thing is, though, that Swift value objects are no dumber than reference objects (that is, structs can have behavior just like classes). Conversely, in

Re: What type category should I use for my model in Swift?

2016-06-02 Thread David Duncan
> On Jun 2, 2016, at 8:55 AM, Daryle Walker wrote: > > [Warning: rambling] > > In Objective-C, you pretty much have to use a class for you model (in your > MVC Cocoa app). But in Swift, you have the option to use a struct/enum or a > non-NSObject class too. > > My model in

What type category should I use for my model in Swift?

2016-06-02 Thread Daryle Walker
[Warning: rambling] In Objective-C, you pretty much have to use a class for you model (in your MVC Cocoa app). But in Swift, you have the option to use a struct/enum or a non-NSObject class too. My model in mind is dumb data, so a struct seems appropriate. But your various Cocoa subclass