2007-02-20 01:02:23 +00:00
|
|
|
//
|
|
|
|
// OutputPane.m
|
|
|
|
// Preferences
|
|
|
|
//
|
|
|
|
// Created by Vincent Spader on 9/4/06.
|
|
|
|
// Copyright 2006 Vincent Spader. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "OutputPane.h"
|
|
|
|
|
|
|
|
|
|
|
|
@implementation OutputPane
|
|
|
|
|
2009-03-08 01:49:50 +00:00
|
|
|
- (NSString *)title
|
2007-02-20 01:02:23 +00:00
|
|
|
{
|
2009-03-08 01:49:50 +00:00
|
|
|
return NSLocalizedStringFromTableInBundle(@"Output", nil, [NSBundle bundleForClass:[self class]], @"");
|
2007-02-20 01:02:23 +00:00
|
|
|
}
|
|
|
|
|
2009-03-08 01:49:50 +00:00
|
|
|
- (NSImage *)icon
|
|
|
|
{
|
2016-05-05 20:05:39 +00:00
|
|
|
return [[NSImage alloc] initWithContentsOfFile:[[NSBundle bundleForClass:[self class]] pathForImageResource:@"output"]];
|
2009-03-08 01:49:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-02-20 01:02:23 +00:00
|
|
|
- (IBAction) takeDeviceID:(id)sender
|
|
|
|
{
|
|
|
|
NSDictionary *device = [[outputDevices selectedObjects] objectAtIndex:0];
|
|
|
|
[[NSUserDefaults standardUserDefaults] setObject: device forKey:@"outputDevice"];
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@end
|