FROM : Drarok Ithaqua
DATE : Fri Jun 30 01:35:56 2006
First, apologies if this was answered recently. I'm sure there was
something at least similar, but I'm not seeing it in the archive...
I'm loading a whole load of files into an NSArrayController (each
file is represented by an NSDictionary).
I can load, and display, all the data fine. But I'd like to
automatically present it sorted after the load.
I've tried the following (and variants similar to the following) to
no avail:
NSSortDescriptor* sorter = [[NSSortDescriptor alloc]
initWithKey:@"tvcArtist" ascending:YES];
[trackController setSortDescriptors:[NSArray arrayWithObject:sorter]];
tvcArtist is the Identifier set in IB against the tableView's column
(tvc = Table View Column),
but I'm stuck - it doesn't sort. Nor does it if I call [tableView
setSortDescrip....
Can someone point me in the right direction?
Many thanks,
- Drarok
DATE : Fri Jun 30 01:35:56 2006
First, apologies if this was answered recently. I'm sure there was
something at least similar, but I'm not seeing it in the archive...
I'm loading a whole load of files into an NSArrayController (each
file is represented by an NSDictionary).
I can load, and display, all the data fine. But I'd like to
automatically present it sorted after the load.
I've tried the following (and variants similar to the following) to
no avail:
NSSortDescriptor* sorter = [[NSSortDescriptor alloc]
initWithKey:@"tvcArtist" ascending:YES];
[trackController setSortDescriptors:[NSArray arrayWithObject:sorter]];
tvcArtist is the Identifier set in IB against the tableView's column
(tvc = Table View Column),
but I'm stuck - it doesn't sort. Nor does it if I call [tableView
setSortDescrip....
Can someone point me in the right direction?
Many thanks,
- Drarok
| Related mails | Author | Date |
|---|---|---|
| Drarok Ithaqua | Jun 30, 01:35 | |
| Matt Neuburg | Jun 30, 03:20 | |
| Drarok Ithaqua | Jun 30, 12:52 | |
| mmalc crawford | Jun 30, 14:55 |






Cocoa mail archive

