Re: Custom View Binding, Arrays, and observeValueForKeyPath (solved)

2010-05-25 Thread Mazen M. Abdel-Rahman
Thanks everyone for your help on this, I found out my problem was how I was overriding -bind:toObject:withKeyPath:options:. In my implementation when adding a view as an observer I neglected to add NSKeyValueObservingOptionOld to the options. Once I did that I was able to see the old values

Re: Custom View Binding, Arrays, and observeValueForKeyPath

2010-05-19 Thread Ken Thomases
On May 19, 2010, at 2:05 AM, Mazen M. Abdel-Rahman wrote: > I have a custom view class with an array property. I want to bind that array > property to a model - which in my case is an array that is in a > container/manager object. The binding is done via a custom view controller > (in it's a

Re: Custom View Binding, Arrays, and observeValueForKeyPath

2010-05-19 Thread Kyle Sluder
On Wed, May 19, 2010 at 12:05 AM, Mazen M. Abdel-Rahman wrote: > What is the best way for calendarView to get the items of the array that are > going to be removed before they are actually removed? We use NSSet KVO instead of array KVO for this exact reason. Another option is to cache the array