• 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
mysterious NSOutlineView crashing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mysterious NSOutlineView crashing


  • Subject: mysterious NSOutlineView crashing
  • From: Alex Rice <email@hidden>
  • Date: Sun, 16 Feb 2003 18:12:41 -0700

I've been trying to hunt down a bug for a while now; and could really use some suggestions. It seems no matter how carefully I write my -outlineView:acceptDrop:item:childIndex: method, NSOutlineView still will crash after a particular drag-n-drop operation followed by collapsing the parent node.

Also, the NSOutlineView seems perfectly happy with the data source until I collapse the parent node. The preceding operating before collapsing the node is always: dragging a child of the node to another position as a child of the same node.

The stack trace is below. So what is NSOutlineView doing in _postItemDidCollapseNotification that I can get an idea of where my data source is going wrong? Why doesn't NSOutlineView have any problems until it gets all the way to posting a DidCollapseNotification? Seems a little late in the process to decide the data source is corrupt.

The operation I'm doing in -outlineView:acceptDrop:item:childIndex: basically is this, although I would be happy do share the entire method with anyone who is willing to take a look.

-pseudo code-
unarchive the dragged items
don't allow drop on descendant nodes
get the true drop index, accounting for filtering of the node children
remove the dragged items from data source
insert dragged items at the true index of children, or append to children
-/pseudo code-

Now, I am not subscribing to NSOutlineViewItemDidCollapseNotification. Is there a way I can ask NSOutlineView not to send that notification? Maybe that would solve my problem.

Thread 0 Crashed:
#0 0x90131db8 in CFRetain
#1 0x90141f14 in CFDictionaryAddValue
#2 0x90141188 in CFDictionaryCreate
#3 0x907f1bec in -[NSPlaceholderDictionary initWithObjects:forKeys:count:]
#4 0x907f74ec in +[NSDictionary dictionaryWithObjectsAndKeys:]
#5 0x932d4b80 in -[NSOutlineView _postItemDidCollapseNotification:]
#6 0x932d3b48 in -[NSOutlineView _collapseItemEntry:collapseChildren:clearExpandState:recursionLevel:]
#7 0x932d386c in -[NSOutlineView _collapseItem:collapseChildren:clearExpandState:]
#8 0x932d59b4 in -[NSOutlineView collapseItem:collapseChildren:]
#9 0x932d62d8 in -[NSOutlineView mouseTracker:didStopTrackingWithEvent:]
#10 0x932031a0 in -[NSMouseTracker stopTrackingWithEvent:]
#11 0x93202870 in -[NSMouseTracker trackWithEvent:inView:withDelegate:]
#12 0x931b0c00 in -[NSOutlineView mouseDown:]
#13 0x930c0888 in -[NSWindow sendEvent:]
#14 0x930a8788 in -[NSApplication sendEvent:]
#15 0x930b1608 in -[NSApplication run]
#16 0x9315f6b8 in NSApplicationMain
#17 0x00025d2c in main (main.m:20)
#18 0x000025e8 in _start (crt.c:267)
#19 0x00002468 in start


Alex Rice <email@hidden> | Mindlube Software | http://mindlube.com

what a waste of thumbs that are opposable
to make machines that are disposable -Ani DiFranco
_______________________________________________
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.

  • Follow-Ups:
    • Re: mysterious NSOutlineView crashing
      • From: Alex Rice <email@hidden>
  • Prev by Date: Re: =?WINDOWS-1252?Q?Re:_[SOLVED_- _But...]_"Subclassing_NSTableView ?= …"
  • Next by Date: Re: Shared Memory and Distributed Objects
  • Previous by thread: Re: =?WINDOWS-1252?Q?Re:_[SOLVED_- _But...]_"Subclassing_NSTableView ?= …"
  • Next by thread: Re: mysterious NSOutlineView crashing
  • Index(es):
    • Date
    • Thread