• 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
Re: Correct MVC code placement
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Correct MVC code placement


  • Subject: Re: Correct MVC code placement
  • From: Chris Tracewell <email@hidden>
  • Date: Sun, 14 Jun 2009 15:19:58 -0700

Ken,

Okay, that makes perfect sense. You are right, I was storing the pipe- separated string of values to avoid needing another DB table for single values that would not surpass more than 2 or 3 per record. However, your and Kyle's response now make it obvious that the pipe- string is not the natural/logical format for cocoa use, and should be a part of the model.

Chris



On Jun 14, 2009, at 3:08 PM, Ken Thomases wrote:

I think what Kyle meant is that your model is the values between the pipe separators. The pipe-separated string format is part of your file format. I don't know what your model represents, but I doubt that the pipe-separated string format is inherent to the thing which it represents. Rather, it seems like the sort of thing which is only part of the storage format.

So, I think the model itself should parse the storage format and expose its state in the more natural format for Cocoa -- an array property.

Cheers,
Ken

_______________________________________________

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


References: 
 >Correct MVC code placement (From: Chris Tracewell <email@hidden>)
 >Re: Correct MVC code placement (From: Kyle Sluder <email@hidden>)
 >Re: Correct MVC code placement (From: Chris Tracewell <email@hidden>)
 >Re: Correct MVC code placement (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Correct MVC code placement
  • Next by Date: Re: Cocoa equivalent to Quartz's CGImageCreateWithImageInRect(image, imageRect);
  • Previous by thread: Re: Correct MVC code placement
  • Next by thread: Archiving undos? NSUndoManager
  • Index(es):
    • Date
    • Thread