Re: Binding woes, connecting model to NSArrayController, crash on remove/insert
Re: Binding woes, connecting model to NSArrayController, crash on remove/insert
- Subject: Re: Binding woes, connecting model to NSArrayController, crash on remove/insert
- From: <email@hidden>
- Date: Tue, 3 Aug 2004 1:48:55 -0400
>
From: "Sean McBride" <email@hidden>
>
To: <email@hidden>
>
Subject: Binding woes, connecting model to NSArrayController, crash on
>
remove/insert
>
Date: Mon, 2 Aug 2004 19:19:14 -0400
>
>
The problems start if I try to bind my NSArrayController in IB to my
>
model. I set 'bind to' to "File's Owner (MyRegController)", 'Controller
>
key' to nothing, 'Model Key Path' to "myModelArray", which is an
>
NSMutableArray* in MyRegController. If I call setMyModelArray from
>
MyRegController, the views update correctly. Good. But, if I click my
>
insert or remove buttons, the app crashes.
>
Did you create your array in your controller's init method? -
MyRegController = [[NSMutableArray alloc] init];
This bit me about two weeks ago.
_______________________________________________
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.