• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Correct MVC code placement
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Correct MVC code placement
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: NSTask root privileges?
  • Next by Date: Re: Correct MVC code placement
  • Previous by thread: Re: NSTask root privileges?
  • Next by thread: Re: Correct MVC code placement
  • Index(es):
    • Date
    • Thread