• 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
NSOutlineView bug? - need ideas please
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOutlineView bug? - need ideas please


  • Subject: NSOutlineView bug? - need ideas please
  • From: Alex Rice <email@hidden>
  • Date: Fri, 28 Mar 2003 18:31:45 -0700

I can crash my app by performing certain operations with the NSOutlineView. This really sucks. For a long time I've thought it's my data source causing the problem and trying to approach the bug from that perspective. I've posted about this before- I don't mean to harp on the same problem. This is just one heck of a bug to track down.

Now I've discovered what might be the same problem with the FileSystem OutlineView example project in /Developer/Examples/AppKit/OutlineView

The exception from Examples/AppKit/OutlineView:
OutlineView[2738] Invalid parameter not satisfying: item
OutlineView[2738] *** Assertion failure in -[NSOutlineView _collapseItem:collapseChildren:clearExpandState:], TableView.subproj/NSOutlineView.m:560
OutlineView[2738] Invalid parameter not satisfying: item

A recipe to cause the exception from the OutlineView example project:
-open the OutlineView.pbproj
-open MainMenu.nib
-check yes to allow multiple selections in the outline view
-save, build and run
-expand some nodes
-Command-a to select all rows (or just a select a mixture of expanded and collapsed rows)
-Command-left arrow to collapse
-see exception

In Slacker.app, not sure why, but the same operation causes a full fledged crash, but
*** the stack trace is the same method in NSOutlineView ***.

Am I onto something here? Is there something wrong with NSOutlineView which causes it to crash?

Why would Examples/AppKit/OutlineView throw an exception, while my app would crash, for the same apparent bug?

#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 0x00027cfc in main (main.m:21)
#18 0x00002078 in _start (crt.c:267)
#19 0x00001ef8 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.

  • Prev by Date: Re: Is there a ready chart plotting view?
  • Next by Date: Re: Is there a ready chart plotting view?
  • Previous by thread: Re: Knowing when all dragged files were processed...
  • Next by thread: Fastersoftware.com
  • Index(es):
    • Date
    • Thread