10.4.3 Crashes with NSTreeController Selection Index Paths
10.4.3 Crashes with NSTreeController Selection Index Paths
- Subject: 10.4.3 Crashes with NSTreeController Selection Index Paths
- From: "Ian G. Gillespie" <email@hidden>
- Date: Wed, 9 Nov 2005 21:17:07 -0500
Greetings,
I know this email might look like a lot, but it outlines a very
simple situation that consistently produces a crash, when I am pretty
sure that it shouldn't. Any help/comments would be most appreciated.
I have an interface setup with a outline view source list on the
left, and selecting an item in it populates an outline view on the
right (ala iTunes). I want the selection path on the right
"remembered" for each item selected on the left. So I have bound the
selection index paths of the left tree controller to the selected
object on the right. The problem is, as soon as the user changes
selection on the left my source list model object's
setSelectionIndexPaths: gets called and is passed an array with zero
objects in it, and thus if the user re-selects the original item in
the source list on the left, the selection for the items on the right
is not remembered AND it now crashes as of 10.4.3. (It prior to
10.4.3 it didn't crash).
To get this to repeat download the test project here www.iggsoft.com/
Test.zip
1)Launch application "Test"
2)Add one item to the source list on the left
3)Add 5 items to list on right
4)Select the a middle item in the right-hand list
5)Add a second item to list on left
6)Add one item to the right-list
7)Re-select first item in list on left and you will see that the item
on the right looses its selection, now select a middle item again (#3
or 4)
8)Select second item on left, application crashes
I manually archive/unarchive the selection index paths because there
seems to be a bug/issue where NSIndexPath doens't unarchive using
NSArchiver, only NSKeyedArchiver, see http://lists.apple.com/archives/
cocoa-dev/2005/Jun/msg00816.html
I get consistent crashes when simply selecting between items from the
source list on left because of an "index beyond bounds" error.
I would be very interested to hear if others are having similar issues.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden