Re: Problem implementing keyPathsForvaluesAffecting

2009-04-24 Thread jonat...@mugginsoft.com
On 23 Apr 2009, at 23:21, Jim Correia wrote: On Apr 22, 2009, at 10:45 AM, jonat...@mugginsoft.com wrote: The property canDelete is dependent on three other properties as shown below. Is there a problem with my implementation of + keyPathsForValuesAffectingCanDelete with regard to the k

Re: Problem implementing keyPathsForvaluesAffecting

2009-04-23 Thread Jim Correia
On Apr 22, 2009, at 10:45 AM, jonat...@mugginsoft.com wrote: The property canDelete is dependent on three other properties as shown below. Is there a problem with my implementation of + keyPathsForValuesAffectingCanDelete with regard to the key path @"arrayController.canRemove"? Is is

Re: Problem implementing keyPathsForvaluesAffecting

2009-04-22 Thread Sean McBride
On 4/22/09 3:45 PM, jonat...@mugginsoft.com said: >+ (NSSet *)keyPathsForValuesAffectingCanDelete >{ > return [NSSet setWithObjects:@"property1", @"property2", >@"arrayController.canRemove", nil]; >} I, and others, have never been able to get dependent key paths working when you traverse a co

Re: Problem implementing keyPathsForvaluesAffecting

2009-04-22 Thread jonat...@mugginsoft.com
On 22 Apr 2009, at 17:10, Keith Duncan wrote: On 22 Apr 2009, at 15:45, jonat...@mugginsoft.com wrote: Is there a problem with my implementation of + keyPathsForValuesAffectingCanDelete You method signature is slightly wrong, it needs to be of the form +keyPathsForValuesAffectingValueFo

Re: Problem implementing keyPathsForvaluesAffecting

2009-04-22 Thread Keith Duncan
On 22 Apr 2009, at 15:45, jonat...@mugginsoft.com wrote: Is there a problem with my implementation of + keyPathsForValuesAffectingCanDelete You method signature is slightly wrong, it needs to be of the form +keyPathsForValuesAffectingValueFor: Keith ___

Re: Problem implementing keyPathsForvaluesAffecting

2009-04-22 Thread jonat...@mugginsoft.com
On 22 Apr 2009, at 17:02, Ken Thomases wrote: On Apr 22, 2009, at 9:45 AM, jonat...@mugginsoft.com wrote: Removing all items in the array bound to arrayController does not cause -canDelete to be evaluated, even though [arrayController canRemove] becomes NO. How are you removing the items

Re: Problem implementing keyPathsForvaluesAffecting

2009-04-22 Thread Ken Thomases
On Apr 22, 2009, at 9:45 AM, jonat...@mugginsoft.com wrote: Removing all items in the array bound to arrayController does not cause -canDelete to be evaluated, even though [arrayController canRemove] becomes NO. How are you removing the items? Is it being done in a KVO-compliant manner?

Problem implementing keyPathsForvaluesAffecting

2009-04-22 Thread jonat...@mugginsoft.com
The property canDelete is dependent on three other properties as shown below. Is there a problem with my implementation of + keyPathsForValuesAffectingCanDelete with regard to the key path @"arrayController.canRemove"? Modifying property1 and property2 results in the re-evaluation of -