Correct MVC code placement
Correct MVC code placement
- Subject: Correct MVC code placement
- From: Chris Tracewell <email@hidden>
- Date: Sun, 14 Jun 2009 11:12:09 -0700
I have many occasions when a model's property needs to be transformed
to another type for use in a view. In this case I have a string of
pipe separated values that need to be transformed into a
NSMutableArray, manipulated in the interface and then converted back
to the pipe separated string before saving the model. Should this be
in the model or in the controller or are there no hard set rules?
FWIW: NSValueTransformer, for some reason, does not perform/call the
reverse transformation back to a string when an array controller is
bound to my model's property... it will display the transformed value
but like others I found it does not reverse the array back to a string.
Thanks
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden