Re: Cocoa Bindings Question(s)
Re: Cocoa Bindings Question(s)
- Subject: Re: Cocoa Bindings Question(s)
- From: John Tsombakos <email@hidden>
- Date: Fri, 16 Jul 2004 23:39:06 -0400
On Jul 16, 2004, at 11:34 PM, mmalcolm crawford wrote:
>
>
On Jul 16, 2004, at 8:12 PM, email@hidden wrote:
>
> Yeah, I thought of that too. I added
>
> booksList = [[NSMutableArray alloc] init];
>
> to the init method of the MyDocument class. Two things - I don't
>
> believe I did
>
> that on the other system earlier
>
>
Was the array controller's "Automatically prepares content" switch set?
>
No, it is not set. I'm not sure if it was on the other. I tried turning
it on and get the same error.
>
> and when I do and run the app, when I click Add, it now errors with
>
> "Bibliotecha has exited due to signal 10 (SIGBUS)."
>
>
Assuming you have not implemented the indexed acessors, do you have
>
suitable accessor methods for booksList (to ensure it's retained when
>
it's set)?
>
These are the accessors:
- (NSMutableArray *)booksList
{
return booksList;
}
- (void) setBooksList:(NSMutableArray *)newBooks
{
[booksList autorelease];
booksList = newBooks;
}
(patterened after several examples)
Thanks for all the help.
>
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.