• 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
Race in Apple's NSTreeContoller/NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Race in Apple's NSTreeContoller/NSOutlineView


  • Subject: Race in Apple's NSTreeContoller/NSOutlineView
  • From: Godfrey van der Linden <email@hidden>
  • Date: Fri, 20 Jun 2008 12:49:15 +1000

Ok, this bug is thread related. I suspected that this was the case earlier since the problem is non-deterministic. Now I'm pretty sure.

The bug I have specified below DOES NOT OCCUR on a powerbook. Now combining non-determinism with only occurring on an iMac CoreDuo. I'm not much of a user land programmer yet but my 10 years of kernel experience says that somebody got a lock wrong somewhere.

Are there any engineers out there interested in tracking this down? If not I'm probably not going to bother to write up a bug report due to a total lack of interest.

Godfrey van der Linden

On 2008-06-20, at 8:13 AM, Godfrey van der Linden wrote:

This is a resend of the previous email with a more accurate title and better organised detail.

This bug is blowing my mind as the behaviour is not deterministic.

I have three outline views that are contained in 2 different NSViewControlled sub-xibs which get loaded into the a place holder view in the main persistent document window. The outlines views are only *occasionally* updated when new data is loaded into their NSTreeControllers.

Failed attempts to localise the bug:-
1> Call reloadData many times from many different places.
2> In primary document xib add a debug window which displays the contents of the managed object context using parallel tree controller and outline views, the debug window is updated fine.
3> In primary document xib, replace NSViewController architecture with direct outline views connected to the debug window's tree controller. Both the debug window and the direct outline views updated.
4> Bind the sub-xibs outline view to the primary document window's tree controllers. Debug window updates correctly but sub-xibs outline views don't!


The sub-xib bindings are through the NSViewControllers representedObject, which gets set not at awakeFromNib time but later when the subview is activated.

Finally the non deterministic behaviour is that rarely one of the two outline views, thought not always the same one, does get data updates and once that happens that outline view seems fine thought the other one still has no data.

So far I haven't tested the code on a single processor machine. My code, however, does not explicitly launch any threads.

_______________________________________________

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


  • Follow-Ups:
    • Re: Race in Apple's NSTreeContoller/NSOutlineView
      • From: Chris Hanson <email@hidden>
    • Re: Race in Apple's NSTreeContoller/NSOutlineView
      • From: Godfrey van der Linden <email@hidden>
    • Re: Race in Apple's NSTreeContoller/NSOutlineView
      • From: Conrad Taylor <email@hidden>
References: 
 >Help debugging why NSOutlineView stops updating (From: Godfrey van der Linden <email@hidden>)

  • Prev by Date: Re: NSTableView DataSource Problem
  • Next by Date: Re: Cocoa can be used to execute arbitrary (privileged) code !
  • Previous by thread: Help debugging why NSOutlineView stops updating
  • Next by thread: Re: Race in Apple's NSTreeContoller/NSOutlineView
  • Index(es):
    • Date
    • Thread