Re: NSViewContoller contained subviews not redrawing
Re: NSViewContoller contained subviews not redrawing
- Subject: Re: NSViewContoller contained subviews not redrawing
- From: "Hamish Allan" <email@hidden>
- Date: Thu, 19 Jun 2008 15:07:37 +0100
On Thu, Jun 19, 2008 at 12:43 PM, Godfrey van der Linden <email@hidden> wrote:
> Ah hah think a developer possiblly I buggered up the 'representedObject'
> property in the NSViewController subclasses, but no such luck When I
> programatically ask the sub-xib's tree controllers the count of their
> arrangedObjects they comes out right. This means that the binding through
> the file owner's represented object is finding the managedObjectContext as
> expected.
It would be my suspicion (though I have been known to get a bee in my
bonnet about this) that although your bindings are set up correctly,
such that you can query values through them, changes are not being
automatically propagated as they should be. In my experience, this
happens because the NSObjectController classes don't report their old
and new values correctly, so downstream bindings drop those
notifications (see e.g.
http://www.cocoabuilder.com/archive/message/cocoa/2008/6/17/210478).
However, I have yet to see it behave non-deterministically.
Anyway, you might try installing some
observeValueForKeyPath:ofObject:change:context: calls in various
places to see if you get notified through some bindings and not
others?
Hamish
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden