forked from agno/TVShows
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Greatly improved how we grab and display show posters on the Subscrip…
…tion screen (no longer requires model change).
- Loading branch information
Matthew Price
committed
Mar 6, 2011
1 parent
ab12f46
commit 376da14
Showing
16 changed files
with
134 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* This file is part of the TVShows 2 ("Phoenix") source code. | ||
* http://github.com/mattprice/TVShows/ | ||
* | ||
* TVShows is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with TVShows. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
*/ | ||
|
||
#import "ValueTransformers.h" | ||
#import "TheTVDB.h" | ||
|
||
|
||
@implementation ShowPosterValueTransformer | ||
|
||
+ (Class) transformedValueClass; | ||
{ | ||
return [NSImage class]; | ||
} | ||
|
||
+ (BOOL) allowsReverseTransformation | ||
{ | ||
return NO; | ||
} | ||
|
||
- (id) transformedValue:(id)value | ||
{ | ||
// For some reason, we sometimes receive nil values. | ||
// Those will crash the program if we aren't careful. | ||
if (value == nil) return nil; | ||
|
||
NSImage *showPoster = [[TheTVDB class] getPosterForShow:value withHeight:96 withWidth:66]; | ||
return showPoster; | ||
} | ||
|
||
@end |
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-17.9 KB
Models/Subscriptions.xcdatamodeld/Subscriptions 2.xcdatamodel/elements
Binary file not shown.
Binary file removed
BIN
-3.93 KB
Models/Subscriptions.xcdatamodeld/Subscriptions 2.xcdatamodel/layout
Binary file not shown.
Oops, something went wrong.