• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Binding woes, connecting model to NSArrayController, crash on remove/insert
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: Messy Nib, how bad is it?
  • Next by Date: Re: Building and access objects at runtime[SOLVED)
  • Previous by thread: NSUserDefaultsDidChangeNotification with NSUserDefaultsController
  • Next by thread: Re: Building and access objects at runtime[SOLVED)
  • Index(es):
    • Date
    • Thread