arrayController setSortDescriptors: problem
arrayController setSortDescriptors: problem
- Subject: arrayController setSortDescriptors: problem
- From: david kiers <email@hidden>
- Date: Wed, 2 Mar 2005 07:23:24 +0100
Dear people,
I have a document-based application with a table view displaying the document’s content using an arrayController.
In the document's windowControllerDidLoadNib I set the arrayControllers sortDescriptors as follows:
NSArray *descript = [[NSArray arrayWithObject:[[NSSortDescriptor alloc]
initWithKey:@"deadLine" ascending:YES selector:@selector(compare:)]]autorelease];
[arrayController setSortDescriptors:descript];
The sorting works fine (using [arrayController rearrangeObjects]), until one of the tableView’s column headers is clicked. This exites the app due to signal 10 (SIGBUS).
The post column header click sortDescriptors array looks fine, for instance:
<CFArray 0x388ea0 [0xa01900e0]>{type = immutable, count = 2, values = (
0 : (auteur, ascending, caseInsensitiveCompare:)
1 : (deadLine, ascending, compare:)
)}
All works fine without the sortDescriptors being set, but then I’m obviously missing my initial sortDescriptor.
Does this provide enough information for anybody to describe a possible conceptual or practical misstep?
Thanks a lot,
David
_______________________________________________
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