One Quickie


Putting the ordering triangles in table columns (NSTableView->General)
Put this somewhere (maybe in your mouseDownInHeaderOfTableColumn or didClickTableColumn:
    NSImage *indicatorImage;
    if (sortAscending) {
        sort your data ascending
        indicatorImage = [NSImage imageNamed: @"NSAscendingSortIndicator"];
    } else {
        sort your data descending
        indicatorImage = [NSImage imageNamed: @"NSDescendingSortIndicator"];
    }
    sortAscending = !sortAscending;

    [tableView setIndicatorImage: indicatorImage
                   inTableColumn: tableColumn];

    [tableView reloadData];



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com