Re: Model / View best practice
Re: Model / View best practice
- Subject: Re: Model / View best practice
- From: Kam Dahlin <email@hidden>
- Date: Mon, 3 Jul 2006 17:44:43 -0700
Thanks Uli,
I will give your approach a shot. Anyway this can be done via
bindings alone?
Regards,
Kam Dahlin
Studio Systems Specialist
Vulcan Studio Group
Vulcan Inc / Submersible Music Inc
email@hidden
On Jul 3, 2006, at 5:29 PM, Uli Kusterer wrote:
Am 03.07.2006 um 18:16 schrieb Kamrin Dahlin:
> Would there be a better way to do this -- a better practice? As it
> stands now, I am hard coding the font, font size and icon size when
> i create the NSAttributedString, which doesn't allow for much
> flexability and since I don't really want to put a bunch of code
> into my model class so that I can change fonts, and fonts size's,
> scale the icon to my row height, etc, I was hoping someone might be
> able to suggest a better way to do this?
You'll probably want a view controller or formatter for your data.
Just a standalone object that takes a string and an image and turns
that into an icon and styled string. This best fits the main point of
OOP: It's not here to adhere to some abstract ideal, but rather to
provide a clean approach to achieving reusability.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden