• 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
Changing content object (class) for NSObjectController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Changing content object (class) for NSObjectController
      • From: Doug Knowles <email@hidden>
  • Prev by Date: Re: id type field of an attribute ?
  • Next by Date: Drag File To somewhere and get path
  • Previous by thread: Re: acceptsMouseMovedEvents?
  • Next by thread: Re: Changing content object (class) for NSObjectController
  • Index(es):
    • Date
    • Thread