Re: Design Question: Pro & Cons of KVC/KVO
Re: Design Question: Pro & Cons of KVC/KVO
- Subject: Re: Design Question: Pro & Cons of KVC/KVO
- From: "Oleg Krupnov" <email@hidden>
- Date: Thu, 21 Aug 2008 18:03:02 +0300
Amin,
It is true that I am new to Cocoa, and although I find the
documentation really great and engaging, I have sort of difficulty
figuring out what technology is newer/more powerful/built on top of/
other technology.
In particular, would you explain me, in just two words, what are the
relations between and intended/typical applications of
(in the context of implementing the MVC pattern)
1) KVC/KVO
2) Bindings
3) Core Data
4) Anything else I may have overlooked?
If Core Data is really that cool, why don't one always use it instead
of KVC/KVO or maybe Bindings?
BTW I didn't say I thought Core Data was a database, I said it may be
intended rather for database apps.
Thanks again :)
On Thu, Aug 21, 2008 at 5:50 PM, Negm-Awad Amin <email@hidden> wrote:
>
> Am Do,21.08.2008 um 16:41 schrieb Oleg Krupnov:
>
>> Thanks Amin for responding.
>>
>> You are correct that there's no need to reinvent the wheel, and that's
>> exactly what I'd like to avoid, that's why I am now re-reading about
>> KVC/KVO and reconsidering it.
>>
>> So, does everybody really always use KVC/KVO for implementing MVC, in
>> all projects?
>
> There are some situation, where glue code is neccessary. Imagine a outline
> view that has a items lib and some groups, where you can place items from
> the lib and see them in the outline view by opening the isclosure. Or you
> have items from different entities there.
>
> But even in this case it helps to use KVO on the parts to get synchronized.
>
>
>> Is this the recommended best practice?
>>
>> BTW does anyone use Core Data?
>
> You're joking?
>
>> I've watched the video tutorial and it
>> looks like too much magic. I would never guess how to make Core Data
>> work for a drawing application like the Sketch. Is Core Data rather
>> for database+forms apps?
>
> 1. Core data is not a database.
> 2. I think, that you are new to cocoa and a little bit afraid of the "magic"
> things. Hey, dive into it, read documentation, try a little bit coding and
> so on. There is no magic. It's just new land for you.
>
>
>>
>>
>> Thanks.
>
> Cheers,
> Amin Negm-Awad
> email@hidden
>
>
>
>
>
_______________________________________________
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