Changing content object (class) for NSObjectController
Changing content object (class) for NSObjectController
- Subject: Changing content object (class) for NSObjectController
- From: Doug Knowles <email@hidden>
- Date: Wed, 27 Apr 2005 19:32:34 -0400
Hi, all,
I have a typical application UI consisting of a window containing two
tables implementing a classic master/detail arrangement, and a
separate inspector ("Get Info...") window to display properties of a
selected object. The fields of the inspector are bound to a
NSObjectController.
If I click around in my "master" table, calling NSObjectController
setContent causes the inspector to correctly display the properties of
the selected "master" object, and I can also get the "detail"
pane/table to correctly update with a list of the objects contained in
the selected master object.
However, when I click on a "detail" object in the second pane, and
pass the selected object to the controller's setContent, the app locks
up. If I call "content" immediately after "setContent", it returns
the "old" master object that was last passed to the controller. I'm
99% confident that the new content object is already retained; I've
even tried retaining it explicitly while it serves as the content
object.
Any thoughts about what I should be looking for?
TIA,
Doug K;
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden