2007-02-19 22:02:23 -03: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-07 22:49:50 -03:00
|
|
|
- (NSString *)title
|
2007-02-19 22:02:23 -03:00
|
|
|
{
|
2021-01-08 02:25:30 -03:00
|
|
|
return NSLocalizedPrefString(@"Output");
|
2007-02-19 22:02:23 -03:00
|
|
|
}
|
|
|
|
|
2009-03-07 22:49:50 -03:00
|
|
|
- (NSImage *)icon
|
|
|
|
{
|
2021-01-08 02:25:30 -03:00
|
|
|
if (@available(macOS 11.0, *))
|
|
|
|
return [NSImage imageWithSystemSymbolName:@"hifispeaker.2.fill" accessibilityDescription:nil];
|
2016-05-05 17:05:39 -03:00
|
|
|
return [[NSImage alloc] initWithContentsOfFile:[[NSBundle bundleForClass:[self class]] pathForImageResource:@"output"]];
|
2009-03-07 22:49:50 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-02-19 22:02:23 -03:00
|
|
|
- (IBAction) takeDeviceID:(id)sender
|
|
|
|
{
|
|
|
|
NSDictionary *device = [[outputDevices selectedObjects] objectAtIndex:0];
|
|
|
|
[[NSUserDefaults standardUserDefaults] setObject: device forKey:@"outputDevice"];
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@end
|