Index starts at 1 now

CQTexperiment
vspader 2005-07-02 21:02:06 +00:00
parent 26893d7146
commit 3e221f7825
40 changed files with 57 additions and 55 deletions

View File

@ -2,11 +2,12 @@
----
Dragging to the dock icon now works in 10.3.
Selection now selects the first song added when adding new files.
Now seeds the random number for shuffle mode.
Now seeds the random number generator for shuffle mode.
Redesigned UI thanks to Julian Mayer <julianmayer (at) mac.com>.
If nothing is selected when the user presses play, the first song is played.
If nothing is selected when the user presses play, the first song is selected and played.
Double-clicking when out of focus now behaves as expected.
Now has a simple dock menu courtesy of Nathanael Weldon <nathanael (at) mailblocks.com>.
The playlist index now starts at 1.
0.04
----

View File

@ -2,13 +2,14 @@
* NSDebug.c
* Cog
*
* Created by Zaphod Beeblebrox on 5/30/05.
* Copyright 2005 __MyCompanyName__. All rights reserved.
* Created by Vincent Spader on 5/30/05.
* Copyright 2005 Vincent Spader All rights reserved.
*
*/
#include "DBLog.h"
void DBLog(NSString *format, ...)
{
#ifdef DEBUG

View File

@ -2,8 +2,8 @@
* NSDebug.h
* Cog
*
* Created by Zaphod Beeblebrox on 5/30/05.
* Copyright 2005 __MyCompanyName__. All rights reserved.
* Created by Vincent Spader on 5/30/05.
* Copyright 2005 Vincent Spader All rights reserved.
*
*/
@ -18,4 +18,4 @@ extern "C"
#ifdef __cplusplus
};
#endif
#endif

View File

@ -21,8 +21,8 @@
</array>
<key>IBOpenObjects</key>
<array>
<integer>21</integer>
<integer>463</integer>
<integer>21</integer>
</array>
<key>IBSystem Version</key>
<string>8B15</string>

Binary file not shown.

View File

@ -3,7 +3,7 @@
// Cog
//
// Created by Vincent Spader on 3/26/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import <Cocoa/Cocoa.h>

View File

@ -3,7 +3,7 @@
// Cog
//
// Created by Vincent Spader on 3/26/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import "FeedbackController.h"

View File

@ -3,7 +3,7 @@
// Cog
//
// Created by Vincent Spader on 3/27/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import <Cocoa/Cocoa.h>

View File

@ -3,7 +3,7 @@
// Cog
//
// Created by Vincent Spader on 3/27/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import "FeedbackSocket.h"

View File

@ -3,7 +3,7 @@
// Cog
//
// Created by Vincent Spader on 3/18/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import <Cocoa/Cocoa.h>

View File

@ -3,7 +3,7 @@
// Cog
//
// Created by Vincent Spader on 3/18/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import "PlaylistController.h"
@ -41,7 +41,7 @@
PlaylistEntry *pe = [[PlaylistEntry alloc] init];
[pe setFilename:filename]; //Setfilename takes car of opening the soundfile..cheap hack, but works for now
[pe setIndex:index];
[pe setIndex:(index+1)];
[pe readTags];
[pe readInfo];
@ -207,7 +207,7 @@
PlaylistEntry *p;
p = [[self content] objectAtIndex:j];
[p setIndex:j];
[p setIndex:(j+1)];
}
}
@ -372,7 +372,7 @@
}
else
{
int i = [currentEntry index] + 1;
int i = ([currentEntry index] - 1) + 1;
if (i >= [[self arrangedObjects] count]) //out of tuuuunes
{
@ -404,7 +404,7 @@
[currentEntry setCurrent:NO];
[pe setCurrent:YES];
[tableView scrollRowToVisible:[(PlaylistEntry *)pe index]];
[tableView scrollRowToVisible:([(PlaylistEntry *)pe index]-1)];
[pe retain];
[currentEntry release];

View File

@ -3,7 +3,7 @@
// Cog
//
// Created by Vincent Spader on 3/14/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import <Cocoa/Cocoa.h>

View File

@ -3,7 +3,7 @@
// Cog
//
// Created by Vincent Spader on 3/14/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import "PlaylistEntry.h"

View File

@ -3,7 +3,7 @@
// Cog
//
// Created by Vincent Spader on 3/20/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import <Cocoa/Cocoa.h>

View File

@ -3,7 +3,7 @@
// Cog
//
// Created by Vincent Spader on 3/20/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import "PlaylistView.h"

View File

@ -2,8 +2,8 @@
// Sound.h
// Cog
//
// Created by Zaphod Beeblebrox on 5/11/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Created by Vincent Spader on 5/11/05.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import <Cocoa/Cocoa.h>

View File

@ -2,8 +2,8 @@
// Sound.m
// Cog
//
// Created by Zaphod Beeblebrox on 5/11/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Created by Vincent Spader on 5/11/05.
// Copyright 2005 Vincent Spader All rights reserved.
//
#include <mach/mach_init.h>

View File

@ -2,8 +2,8 @@
// AACFile.h
// Cog
//
// Created by Zaphod Beeblebrox on 5/31/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Created by Vincent Spader on 5/31/05.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import <Cocoa/Cocoa.h>

View File

@ -2,8 +2,8 @@
// AACFile.m
// Cog
//
// Created by Zaphod Beeblebrox on 5/31/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Created by Vincent Spader on 5/31/05.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import "AACFile.h"

View File

@ -3,7 +3,7 @@
// zyVorbis
//
// Created by Vincent Spader on 1/25/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import <Cocoa/Cocoa.h>

View File

@ -3,7 +3,7 @@
// zyVorbis
//
// Created by Vincent Spader on 1/25/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import "FlacFile.h"

View File

@ -3,7 +3,7 @@
// zyVorbis
//
// Created by Vincent Spader on 1/30/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import <Cocoa/Cocoa.h>

View File

@ -3,7 +3,7 @@
// zyVorbis
//
// Created by Vincent Spader on 1/30/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import "MPEGFile.h"

View File

@ -3,7 +3,7 @@
// zyVorbis
//
// Created by Vincent Spader on 1/30/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import <Cocoa/Cocoa.h>

View File

@ -3,7 +3,7 @@
// zyVorbis
//
// Created by Vincent Spader on 1/30/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import "MonkeysFile.h"

View File

@ -3,7 +3,7 @@
// zyVorbis
//
// Created by Vincent Spader on 1/23/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import <Cocoa/Cocoa.h>

View File

@ -3,7 +3,7 @@
// zyVorbis
//
// Created by Vincent Spader on 1/23/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import "MusepackFile.h"

View File

@ -2,8 +2,8 @@
// ShnFile.h
// Cog
//
// Created by Zaphod Beeblebrox on 6/6/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Created by Vincent Spader on 6/6/05.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import <Cocoa/Cocoa.h>

View File

@ -2,8 +2,8 @@
// ShnFile.m
// Cog
//
// Created by Zaphod Beeblebrox on 6/6/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Created by Vincent Spader on 6/6/05.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import "ShnFile.h"

View File

@ -3,7 +3,7 @@
// Cog
//
// Created by Vincent Spader on 1/15/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import <Cocoa/Cocoa.h>

View File

@ -3,7 +3,7 @@
// Cog
//
// Created by Vincent Spader on 1/15/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import "SoundFile.h"

View File

@ -3,7 +3,7 @@
// zyVorbis
//
// Created by Vincent Spader on 1/22/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import <Cocoa/Cocoa.h>

View File

@ -3,7 +3,7 @@
// zyVorbis
//
// Created by Vincent Spader on 1/22/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import "VorbisFile.h"

View File

@ -2,8 +2,8 @@
// WavPackFile.h
// Cog
//
// Created by Zaphod Beeblebrox on 6/6/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Created by Vincent Spader on 6/6/05.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import <Cocoa/Cocoa.h>

View File

@ -2,8 +2,8 @@
// WavPackFile.m
// Cog
//
// Created by Zaphod Beeblebrox on 6/6/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Created by Vincent Spader on 6/6/05.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import "WavPackFile.h"

View File

@ -3,7 +3,7 @@
// zyVorbis
//
// Created by Vincent Spader on 1/31/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import <Cocoa/Cocoa.h>

View File

@ -3,7 +3,7 @@
// zyVorbis
//
// Created by Vincent Spader on 1/31/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import "WaveFile.h"

View File

@ -3,7 +3,7 @@
// Cog
//
// Created by Vincent Spader on 3/26/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import <Cocoa/Cocoa.h>

View File

@ -3,7 +3,7 @@
// Cog
//
// Created by Vincent Spader on 3/26/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import "UpdateController.h"

2
main.m
View File

@ -2,7 +2,7 @@
// main.m
// Cog
//
// Created by Zaphod Beeblebrox on 5/7/05.
// Created by Vincent Spader on 5/7/05.
// Copyright __MyCompanyName__ 2005. All rights reserved.
//