2009-03-07 22:31:57 +00:00
|
|
|
//
|
|
|
|
// InfoWindowController.m
|
|
|
|
// Cog
|
|
|
|
//
|
|
|
|
// Created by Vincent Spader on 3/7/09.
|
|
|
|
// Copyright 2009 __MyCompanyName__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "InfoWindowController.h"
|
2009-03-08 20:04:09 +00:00
|
|
|
#import "MissingAlbumArtTransformer.h"
|
2009-03-07 22:31:57 +00:00
|
|
|
|
|
|
|
@implementation InfoWindowController
|
|
|
|
|
|
|
|
@synthesize playlistSelectionController;
|
|
|
|
|
2009-03-08 20:04:09 +00:00
|
|
|
+ (void)initialize
|
|
|
|
{
|
|
|
|
NSValueTransformer *missingAlbumArtTransformer = [[[MissingAlbumArtTransformer alloc] init] autorelease];
|
|
|
|
[NSValueTransformer setValueTransformer:missingAlbumArtTransformer
|
|
|
|
forName:@"MissingAlbumArtTransformer"];
|
|
|
|
}
|
|
|
|
|
2009-03-07 22:31:57 +00:00
|
|
|
- (id)init
|
|
|
|
{
|
|
|
|
return [super initWithWindowNibName:@"InfoInspector"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (IBAction)toggleWindow:(id)sender
|
|
|
|
{
|
|
|
|
if ([[self window] isVisible])
|
|
|
|
[[self window] orderOut:self];
|
|
|
|
else
|
|
|
|
[self showWindow:self];
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|