Updated PlaylistView so status column header is blank.
parent
23396a9747
commit
6c5ecf3701
File diff suppressed because it is too large
Load Diff
|
@ -60,7 +60,7 @@
|
||||||
//Set up header context menu
|
//Set up header context menu
|
||||||
headerContextMenu = [[NSMenu alloc] initWithTitle:@"Playlist Header Context Menu"];
|
headerContextMenu = [[NSMenu alloc] initWithTitle:@"Playlist Header Context Menu"];
|
||||||
|
|
||||||
NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"headerCell.title" ascending:YES];
|
NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"identifier" ascending:YES];
|
||||||
NSArray *sortDescriptors = [NSArray arrayWithObject:sortDescriptor];
|
NSArray *sortDescriptors = [NSArray arrayWithObject:sortDescriptor];
|
||||||
[sortDescriptor release];
|
[sortDescriptor release];
|
||||||
|
|
||||||
|
@ -68,7 +68,21 @@
|
||||||
int menuIndex = 0;
|
int menuIndex = 0;
|
||||||
for (NSTableColumn *col in [[self tableColumns] sortedArrayUsingDescriptors: sortDescriptors])
|
for (NSTableColumn *col in [[self tableColumns] sortedArrayUsingDescriptors: sortDescriptors])
|
||||||
{
|
{
|
||||||
NSMenuItem *contextMenuItem = [headerContextMenu insertItemWithTitle:[[col headerCell] title] action:@selector(toggleColumn:) keyEquivalent:@"" atIndex:menuIndex];
|
NSString *title;
|
||||||
|
if ([[col identifier] isEqualToString:@"status"])
|
||||||
|
{
|
||||||
|
title = @"Status";
|
||||||
|
}
|
||||||
|
else if ([[col identifier] isEqualToString:@"index"])
|
||||||
|
{
|
||||||
|
title = @"Index";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
title = [[col headerCell] title];
|
||||||
|
}
|
||||||
|
|
||||||
|
NSMenuItem *contextMenuItem = [headerContextMenu insertItemWithTitle:title action:@selector(toggleColumn:) keyEquivalent:@"" atIndex:menuIndex];
|
||||||
|
|
||||||
[contextMenuItem setTarget:self];
|
[contextMenuItem setTarget:self];
|
||||||
[contextMenuItem setRepresentedObject:col];
|
[contextMenuItem setRepresentedObject:col];
|
||||||
|
|
|
@ -36,9 +36,8 @@
|
||||||
- (void)doConnection
|
- (void)doConnection
|
||||||
{
|
{
|
||||||
NSURLRequest *request = [[NSURLRequest alloc] initWithURL:_url];
|
NSURLRequest *request = [[NSURLRequest alloc] initWithURL:_url];
|
||||||
|
|
||||||
_connection = [[NSURLConnection alloc] initWithRequest:request delegate:self];
|
_connection = [[NSURLConnection alloc] initWithRequest:request delegate:self];
|
||||||
|
|
||||||
[request release];
|
[request release];
|
||||||
|
|
||||||
while (!_connectionFinished)
|
while (!_connectionFinished)
|
||||||
|
|
|
@ -150,9 +150,11 @@
|
||||||
089C1669FE841209C02AAC07 /* Project object */ = {
|
089C1669FE841209C02AAC07 /* Project object */ = {
|
||||||
isa = PBXProject;
|
isa = PBXProject;
|
||||||
buildConfigurationList = 1DEB913E08733D840010E9CD /* Build configuration list for PBXProject "HTTPSource" */;
|
buildConfigurationList = 1DEB913E08733D840010E9CD /* Build configuration list for PBXProject "HTTPSource" */;
|
||||||
|
compatibilityVersion = "Xcode 2.4";
|
||||||
hasScannedForEncodings = 1;
|
hasScannedForEncodings = 1;
|
||||||
mainGroup = 089C166AFE841209C02AAC07 /* HTTPSource */;
|
mainGroup = 089C166AFE841209C02AAC07 /* HTTPSource */;
|
||||||
projectDirPath = "";
|
projectDirPath = "";
|
||||||
|
projectRoot = "";
|
||||||
targets = (
|
targets = (
|
||||||
8D5B49AC048680CD000E48DA /* HTTPSource Plugin */,
|
8D5B49AC048680CD000E48DA /* HTTPSource Plugin */,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue