I have a strange crash in 10.5 that doesn't crash in 10.6. My app has
a NSTreeController that is bound to an XML document. I am using the
"Tree-Based XML Programming Guide for Cocoa: Using Tree Controllers
with NSXML Objects" as a guideline.

http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/NSXML_Concepts/Articles/UsingTreeControllers.html

Whenever a user drags in files and folders from the Finder the app
iterates over the files and inserts them into the tree controller
using NSTreeController's insertObject:atArrangedObjectIndexPath:
method. If a user drags in a folder, it creates an XML element,
inserts it into the tree controller and then iterates over the
folder's contents and inserts those as well.

This works fine under 10.6, but under 10.5 I am getting the following
error logged to the console immediately after there is a file node
inserted into the new folder node. The app only displays the folder
and one file from that folder.

11/3/09 11:00:08 AM App[225] *** Canceling drag because exception
'NSInternalInconsistencyException' (reason '***
-[NSKeyValueFastMutableArray2 count]: value for key children of object
0x14da3f10 is nil') was raised during a dragging session

I am looking for any type of work around for this issue that allows
this app to run under both 10.5 and 10.6. Any advice is helpful.

Thank you,

lee
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to