Re: Cocoa Bindings Question(s)
Re: Cocoa Bindings Question(s)
- Subject: Re: Cocoa Bindings Question(s)
- From: John Tsombakos <email@hidden>
- Date: Sat, 17 Jul 2004 02:01:46 -0400
Just one small note - Just for kicks I changed how I created the
NSMutableArray to:
booksList = [[[NSMutableArray alloc] init] retain];
which I SWEAR I had done before... and it works still.
Go figure.
On Jul 17, 2004, at 12:07 AM, mmalcolm crawford wrote:
>
>
On Jul 16, 2004, at 8:39 PM, John Tsombakos wrote:
>
> - (void) setBooksList:(NSMutableArray *)newBooks
>
> {
>
> [booksList autorelease];
>
> booksList = newBooks;
>
> }
>
> (patterened after several examples)
>
>
>
I hope not! :-)
>
>
- (void) setBooksList:(NSMutableArray *)newBooks
>
{
>
if (newBooks != booksList)
>
{
>
[booksList autorelease];
>
booksList = [newBooks retain];
>
// or, probably better here:
>
// booksList = [newBooks mutableCopy];
>
}
>
}
>
>
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.