Cog/Preferences/Preferences/AppcastArrayController.m
Christopher Snowhill b927f4c02b Replace more NSDictionary use with literals
Use literals to initialize fixed NSDictionary objects in various places.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2022-02-08 19:56:04 -08:00

32 lines
1.2 KiB
Objective-C

//
// AppcastArrayController.m
// General
//
// Created by Vincent Spader on 5/19/07.
// Copyright 2007 __MyCompanyName__. All rights reserved.
//
#import "AppcastArrayController.h"
@implementation AppcastArrayController
- (void)awakeFromNib {
[self removeObjects:[self arrangedObjects]];
//[self addObject:
// [NSDictionary dictionaryWithObjectsAndKeys:
// NSLocalizedStringFromTableInBundle(@"Stable", nil, [NSBundle bundleForClass:[self class]], @"") , @"name", @"http://mamburu.net/cog/stable.xml", @"url",nil]];
// [self addObject:
// [NSDictionary dictionaryWithObjectsAndKeys:
// NSLocalizedStringFromTableInBundle(@"Unstable", nil, [NSBundle bundleForClass:[self class]], @"") , @"name", @"http://cogx.org/appcast/unstable.xml", @"url",nil]];
//[self addObject:
// [NSDictionary dictionaryWithObjectsAndKeys:
// NSLocalizedStringFromTableInBundle(@"Nightly", nil, [NSBundle bundleForClass:[self class]], @"") , @"name", @"http://mamburu.net/cog/nightly.xml", @"url",nil]];
[self addObject:
@{@"name": NSLocalizedStringFromTableInBundle(@"cog.losno.co wheneverly", nil, [NSBundle bundleForClass:[self class]], @""), @"url": @"https://cogcdn.cog.losno.co/mercury.xml"}];
}
@end