Re: Cocoa Bindings Question(s)
Re: Cocoa Bindings Question(s)
- Subject: Re: Cocoa Bindings Question(s)
- From: John Tsombakos <email@hidden>
- Date: Mon, 19 Jul 2004 17:23:04 -0400
Just a quick follow up to this.
I checked the other copy of the test app, and as I thought, it does not
do the alloc/init in the init method - and it does not give the "value
for key booksList of object 0x344ce0 is nil" error. It did have the
correct "retain" in the setter method. So I tried removing the
alloc/init from the "problem" version, keeping the retain in the setter
- and I get the error. I have no idea what's different. I'm going to
bring the two versions of the code together and see what I can find.
jt
On Jul 17, 2004, at 2:45 AM, mmalcolm crawford wrote:
On Jul 16, 2004, at 11:01 PM, John Tsombakos wrote:
booksList = [[[NSMutableArray alloc] init] retain];
which I SWEAR I had done before... and it works still.
There is no need for the 'retain' -- you will leak the array.
Either:
booksList = [[NSMutableArray alloc] init];
or:
[self setBooksList:[NSMutableArray array]];
mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.