Re: @property question

2008-05-13 Thread Craig Hopson
No, not using bindings, but good point yes, the param type was a typo. While everything 'seems' to be working now, the info that I got in the debugger when I was seeing problems looked suspiciously like the state of things when an object has been released but is then referenced. I need to

Re: @property question

2008-05-13 Thread Roland King
Can someone expand on this a little more please and fill in some blanks about why the first version isn't KVO compliant and what it is about the second one which makes KVO work? That second piece of code [ [ self mutableArrayValueForKey:@fieldArray ] addObjectInFoo ]; is not perhaps the

Re: @property question

2008-05-13 Thread Kyle Sluder
On Tue, May 13, 2008 at 8:41 PM, Roland King [EMAIL PROTECTED] wrote: Can someone expand on this a little more please and fill in some blanks about why the first version isn't KVO compliant and what it is about the second one which makes KVO work? KVO requires that you use the supplied

Re: @property question

2008-05-13 Thread Chris Hanson
On May 13, 2008, at 5:41 PM, Roland King wrote: Can someone expand on this a little more please and fill in some blanks about why the first version isn't KVO compliant and what it is about the second one which makes KVO work? That second piece of code [ [ self

Re: @property question

2008-05-12 Thread Shawn Erickson
On Mon, May 12, 2008 at 2:30 PM, Craig Hopson [EMAIL PROTECTED] wrote: So, the question is, what is the difference between using self. notation and not? I have declared the properties to retain the objects. The compiler is happy, I just die at run time when I attempt to access the contents

Re: @property question

2008-05-12 Thread Craig Hopson
Guys, I think I've been the victim of some side effect that I cannot track down. With no other changes, I tried again with each style, [ self.fieldArray addObject:inFoo ]; [ fieldArray addObject:inFoo ]; replacing all occurrences for each test, and both work - what I would

Re: @property question

2008-05-12 Thread Phoenix Draco
Sorry if this is naïve but I have a quick follow up q (to verify that I am understanding ObjC correctly). Is it true that: The two styles seem to me to have slightly different execution paths. The first: [self.fieldArray addObject:inFoo] Would actually invoke the property accessor fieldArray

Re: @property question

2008-05-12 Thread Clark Cox
On Mon, May 12, 2008 at 3:42 PM, Phoenix Draco [EMAIL PROTECTED] wrote: Sorry if this is naïve but I have a quick follow up q (to verify that I am understanding ObjC correctly). Is it true that: The two styles seem to me to have slightly different execution paths. The first:

Re: @property question

2008-05-12 Thread Quincey Morris
On May 12, 2008, at 15:19, Craig Hopson wrote: I think I've been the victim of some side effect that I cannot track down. With no other changes, I tried again with each style, [ self.fieldArray addObject:inFoo ]; [ fieldArray addObject:inFoo ]; replacing all occurrences for