Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Commit

Permalink
Convert to ARC except for ASIHTTPRequest library. Will need to move t…
Browse files Browse the repository at this point in the history
…o an alternative library at some point as it's no longer being updated.
  • Loading branch information
willson556 committed Jun 13, 2013
1 parent 6ddd964 commit 7bfd28c
Show file tree
Hide file tree
Showing 30 changed files with 699 additions and 469 deletions.
2 changes: 1 addition & 1 deletion AppController.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ bool runUpdate=NO;
//- (IBAction)saveSolutionsAsText:(id)sender;

//Key-Value Coding
@property (readwrite, assign) NSMutableAttributedString *log_value;
@property (readwrite) NSMutableAttributedString *log_value;
@property (readonly) NSString *getiPlayerPath;

@end
8 changes: 3 additions & 5 deletions AppController.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ - (id)description
}
- (id)init {
//Initialization
[super init];
if (!(self = [super init])) return nil;
NSNotificationCenter *nc;
nc = [NSNotificationCenter defaultCenter];

Expand Down Expand Up @@ -147,7 +147,7 @@ - (void)awakeFromNib
rootObject = [NSKeyedUnarchiver unarchiveObjectWithFile:filePath];
NSArray *tempQueue = [rootObject valueForKey:@"queue"];
NSArray *tempSeries = [rootObject valueForKey:@"serieslink"];
lastUpdate = [[rootObject valueForKey:@"lastUpdate"] retain];
lastUpdate = [rootObject valueForKey:@"lastUpdate"];
[queueController addObjects:tempQueue];
[pvrQueueController addObjects:tempSeries];
}
Expand Down Expand Up @@ -615,7 +615,7 @@ - (void)getiPlayerUpdateFinished
isSticky:NO
clickContext:nil];
[self addToLog:@"Index Updated." :self];
lastUpdate=[[NSDate date] retain];
lastUpdate=[NSDate date];
}
else
{
Expand Down Expand Up @@ -2014,8 +2014,6 @@ - (void)pvrSearchDataReady:(NSNotification *)n
}
- (void)pvrSearchFinished:(NSNotification *)n
{
[pvrSearchTask dealloc];
[pvrSearchPipe dealloc];
[pvrResultsController removeObjectsAtArrangedObjectIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, [[pvrResultsController arrangedObjects] count])]];
NSString *string = [NSString stringWithString:pvrSearchData];
NSUInteger length = [string length];
Expand Down
2 changes: 1 addition & 1 deletion BBCDownload.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ @implementation BBCDownload
#pragma mark Overridden Methods
- (id)initWithProgramme:(Programme *)tempShow tvFormats:(NSArray *)tvFormatList radioFormats:(NSArray *)radioFormatList proxy:(HTTPProxy *)aProxy
{
[super init];
if (!(self = [super init])) return nil;
runAgain = NO;
running=YES;
foundLastLine=NO;
Expand Down
2 changes: 1 addition & 1 deletion Download.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@implementation Download
- (id)init
{
[super init];
if (!(self = [super init])) return nil;

//Prepare Time Remaining
rateEntries = [[NSMutableArray alloc] init];
Expand Down
2 changes: 1 addition & 1 deletion DownloadHistoryController.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@implementation DownloadHistoryController
- (id)init
{
[super init];
if (!(self = [super init])) return nil;
[self readHistory:self];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(addToHistory:) name:@"AddProgToHistory" object:nil];
return self;
Expand Down
14 changes: 7 additions & 7 deletions DownloadHistoryEntry.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
- (id)initWithPID:(NSString *)temp_pid showName:(NSString *)temp_showName episodeName:(NSString *)temp_episodeName type:(NSString *)temp_type someNumber:(NSString *)temp_someNumber downloadFormat:(NSString *)temp_downloadFormat downloadPath:(NSString *)temp_downloadPath;
- (NSString *)entryString;

@property(readwrite,assign) NSString *pid;
@property(readwrite,assign) NSString *showName;
@property(readwrite,assign) NSString *episodeName;
@property(readwrite,assign) NSString *type;
@property(readwrite,assign) NSString *someNumber;
@property(readwrite,assign) NSString *downloadFormat;
@property(readwrite,assign) NSString *downloadPath;
@property(readwrite) NSString *pid;
@property(readwrite) NSString *showName;
@property(readwrite) NSString *episodeName;
@property(readwrite) NSString *type;
@property(readwrite) NSString *someNumber;
@property(readwrite) NSString *downloadFormat;
@property(readwrite) NSString *downloadPath;

@end
2 changes: 1 addition & 1 deletion DownloadHistoryEntry.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@implementation DownloadHistoryEntry
- (id)initWithPID:(NSString *)temp_pid showName:(NSString *)temp_showName episodeName:(NSString *)temp_episodeName type:(NSString *)temp_type someNumber:(NSString *)temp_someNumber downloadFormat:(NSString *)temp_downloadFormat downloadPath:(NSString *)temp_downloadPath
{
[super init];
if (!(self = [super init])) return nil;
pid=[temp_pid copy];
showName=[temp_showName copy];
episodeName=[temp_episodeName copy];
Expand Down
2 changes: 1 addition & 1 deletion FourODDownload.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ - (id)description
}
- (id)initWithProgramme:(Programme *)tempShow proxy:(HTTPProxy *)aProxy
{
[super init];
if (!(self = [super init])) return nil;

proxy = aProxy;
show = tempShow;
Expand Down
Loading

0 comments on commit 7bfd28c

Please sign in to comment.