support the retina iPad
|
|
@ -35,7 +35,6 @@
|
|||
7B81723E14B167BF003EC770 /* icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 7B81723014B167BF003EC770 /* icon.png */; };
|
||||
7B81723F14B167BF003EC770 /* icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 7B81723114B167BF003EC770 /* icon@2x.png */; };
|
||||
7B81724014B167BF003EC770 /* talkshow.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 7B81723214B167BF003EC770 /* talkshow.jpg */; };
|
||||
7B81724114B167BF003EC770 /* webahead.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 7B81723314B167BF003EC770 /* webahead.jpg */; };
|
||||
7B81725E14B1688D003EC770 /* MMHTTPClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 7B81724314B1688D003EC770 /* MMHTTPClient.h */; };
|
||||
7B81725F14B1688D003EC770 /* MMHTTPClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B81724414B1688D003EC770 /* MMHTTPClient.m */; };
|
||||
7B81726014B1688D003EC770 /* MMHTTPRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 7B81724514B1688D003EC770 /* MMHTTPRequest.h */; };
|
||||
|
|
@ -65,6 +64,12 @@
|
|||
7B86894B149D5C1000F3A2C6 /* ShowViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B868949149D5C0F00F3A2C6 /* ShowViewController.m */; };
|
||||
7B868951149D5C6F00F3A2C6 /* ShowViewController_iPad.xib in Resources */ = {isa = PBXBuildFile; fileRef = 7B86894D149D5C6F00F3A2C6 /* ShowViewController_iPad.xib */; };
|
||||
7B868952149D5C6F00F3A2C6 /* ShowViewController_iPhone.xib in Resources */ = {isa = PBXBuildFile; fileRef = 7B86894F149D5C6F00F3A2C6 /* ShowViewController_iPhone.xib */; };
|
||||
7B9FFD66151E39210048A9C8 /* afterdark.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 7B9FFD62151E39210048A9C8 /* afterdark.jpg */; };
|
||||
7B9FFD67151E39210048A9C8 /* bb.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 7B9FFD63151E39210048A9C8 /* bb.jpg */; };
|
||||
7B9FFD68151E39210048A9C8 /* movies.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 7B9FFD64151E39210048A9C8 /* movies.jpg */; };
|
||||
7B9FFD69151E39210048A9C8 /* specials.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 7B9FFD65151E39210048A9C8 /* specials.jpg */; };
|
||||
7B9FFD76151E3D2F0048A9C8 /* NSDate+relative.h in Headers */ = {isa = PBXBuildFile; fileRef = 7B9FFD74151E3D2F0048A9C8 /* NSDate+relative.h */; };
|
||||
7B9FFD77151E3D2F0048A9C8 /* NSDate+relative.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B9FFD75151E3D2F0048A9C8 /* NSDate+relative.m */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
|
|
@ -104,7 +109,6 @@
|
|||
7B81723014B167BF003EC770 /* icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = icon.png; path = Images/icon.png; sourceTree = "<group>"; };
|
||||
7B81723114B167BF003EC770 /* icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "icon@2x.png"; path = "Images/icon@2x.png"; sourceTree = "<group>"; };
|
||||
7B81723214B167BF003EC770 /* talkshow.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = talkshow.jpg; path = Images/talkshow.jpg; sourceTree = "<group>"; };
|
||||
7B81723314B167BF003EC770 /* webahead.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = webahead.jpg; path = Images/webahead.jpg; sourceTree = "<group>"; };
|
||||
7B81724314B1688D003EC770 /* MMHTTPClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MMHTTPClient.h; sourceTree = "<group>"; };
|
||||
7B81724414B1688D003EC770 /* MMHTTPClient.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MMHTTPClient.m; sourceTree = "<group>"; };
|
||||
7B81724514B1688D003EC770 /* MMHTTPRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MMHTTPRequest.h; sourceTree = "<group>"; };
|
||||
|
|
@ -136,6 +140,12 @@
|
|||
7B868949149D5C0F00F3A2C6 /* ShowViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ShowViewController.m; sourceTree = "<group>"; };
|
||||
7B86894E149D5C6F00F3A2C6 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/ShowViewController_iPad.xib; sourceTree = "<group>"; };
|
||||
7B868950149D5C6F00F3A2C6 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/ShowViewController_iPhone.xib; sourceTree = "<group>"; };
|
||||
7B9FFD62151E39210048A9C8 /* afterdark.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = afterdark.jpg; path = Images/afterdark.jpg; sourceTree = "<group>"; };
|
||||
7B9FFD63151E39210048A9C8 /* bb.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = bb.jpg; path = Images/bb.jpg; sourceTree = "<group>"; };
|
||||
7B9FFD64151E39210048A9C8 /* movies.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = movies.jpg; path = Images/movies.jpg; sourceTree = "<group>"; };
|
||||
7B9FFD65151E39210048A9C8 /* specials.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = specials.jpg; path = Images/specials.jpg; sourceTree = "<group>"; };
|
||||
7B9FFD74151E3D2F0048A9C8 /* NSDate+relative.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSDate+relative.h"; sourceTree = "<group>"; };
|
||||
7B9FFD75151E3D2F0048A9C8 /* NSDate+relative.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSDate+relative.m"; sourceTree = "<group>"; };
|
||||
7BDCFA00149E688600DDF1B3 /* InstapaperCredentials.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = InstapaperCredentials.h; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
|
|
@ -158,6 +168,8 @@
|
|||
7B1A6EBF149D140600FC5105 = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
7B9FFD74151E3D2F0048A9C8 /* NSDate+relative.h */,
|
||||
7B9FFD75151E3D2F0048A9C8 /* NSDate+relative.m */,
|
||||
7B81724214B1688D003EC770 /* Marshmallows */,
|
||||
7B81724D14B1688D003EC770 /* MWFeedParser */,
|
||||
7B1A6ED4149D140600FC5105 /* 5by5Browser */,
|
||||
|
|
@ -218,6 +230,10 @@
|
|||
7B1A6ED5149D140600FC5105 /* Supporting Files */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
7B9FFD62151E39210048A9C8 /* afterdark.jpg */,
|
||||
7B9FFD63151E39210048A9C8 /* bb.jpg */,
|
||||
7B9FFD64151E39210048A9C8 /* movies.jpg */,
|
||||
7B9FFD65151E39210048A9C8 /* specials.jpg */,
|
||||
7B81722714B167BF003EC770 /* b2w.jpg */,
|
||||
7B81722814B167BF003EC770 /* back.png */,
|
||||
7B81722914B167BF003EC770 /* back@2x.png */,
|
||||
|
|
@ -230,7 +246,6 @@
|
|||
7B81723014B167BF003EC770 /* icon.png */,
|
||||
7B81723114B167BF003EC770 /* icon@2x.png */,
|
||||
7B81723214B167BF003EC770 /* talkshow.jpg */,
|
||||
7B81723314B167BF003EC770 /* webahead.jpg */,
|
||||
7B1A6ED6149D140600FC5105 /* 5by5Browser-Info.plist */,
|
||||
7B1A6ED7149D140600FC5105 /* InfoPlist.strings */,
|
||||
7B1A6EDA149D140600FC5105 /* main.m */,
|
||||
|
|
@ -306,6 +321,7 @@
|
|||
7B81727214B1688D003EC770 /* MWFeedItem.h in Headers */,
|
||||
7B81727414B1688D003EC770 /* MWFeedParser.h in Headers */,
|
||||
7B81727614B1688D003EC770 /* MWFeedParser_Private.h in Headers */,
|
||||
7B9FFD76151E3D2F0048A9C8 /* NSDate+relative.h in Headers */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
|
@ -381,7 +397,10 @@
|
|||
7B81723E14B167BF003EC770 /* icon.png in Resources */,
|
||||
7B81723F14B167BF003EC770 /* icon@2x.png in Resources */,
|
||||
7B81724014B167BF003EC770 /* talkshow.jpg in Resources */,
|
||||
7B81724114B167BF003EC770 /* webahead.jpg in Resources */,
|
||||
7B9FFD66151E39210048A9C8 /* afterdark.jpg in Resources */,
|
||||
7B9FFD67151E39210048A9C8 /* bb.jpg in Resources */,
|
||||
7B9FFD68151E39210048A9C8 /* movies.jpg in Resources */,
|
||||
7B9FFD69151E39210048A9C8 /* specials.jpg in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
|
@ -412,6 +431,7 @@
|
|||
7B81727114B1688D003EC770 /* MWFeedInfo.m in Sources */,
|
||||
7B81727314B1688D003EC770 /* MWFeedItem.m in Sources */,
|
||||
7B81727514B1688D003EC770 /* MWFeedParser.m in Sources */,
|
||||
7B9FFD77151E3D2F0048A9C8 /* NSDate+relative.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 39 KiB |
BIN
5by5Browser/Images/b2w@2x.jpg
Normal file
|
After Width: | Height: | Size: 113 KiB |
|
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 39 KiB |
BIN
5by5Browser/Images/buildanalyze@2x.jpg
Normal file
|
After Width: | Height: | Size: 114 KiB |
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 23 KiB |
BIN
5by5Browser/Images/criticalpath@2x.jpg
Normal file
|
After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 36 KiB |
BIN
5by5Browser/Images/geekfriday@2x.jpg
Normal file
|
After Width: | Height: | Size: 114 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 31 KiB |
BIN
5by5Browser/Images/hypercritical@2x.jpg
Normal file
|
After Width: | Height: | Size: 98 KiB |
|
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 35 KiB |
BIN
5by5Browser/Images/talkshow@2x.jpg
Normal file
|
After Width: | Height: | Size: 102 KiB |
15
NSDate+relative.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
//
|
||||
// NSDate+relative.h
|
||||
// DatingX
|
||||
//
|
||||
// Created by Sami Samhuri on 11-08-25.
|
||||
// Copyright 2011 __MyCompanyName__. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface NSDate (NSDate_relative)
|
||||
|
||||
- (NSString *) relativeToNow;
|
||||
|
||||
@end
|
||||
60
NSDate+relative.m
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
//
|
||||
// NSDate+relative.m
|
||||
// DatingX
|
||||
//
|
||||
// Created by Sami Samhuri on 11-08-25.
|
||||
// Copyright 2011 __MyCompanyName__. All rights reserved.
|
||||
//
|
||||
|
||||
#import "NSDate+relative.h"
|
||||
|
||||
#define MINUTE 60.0
|
||||
#define HOUR (60.0 * MINUTE)
|
||||
#define DAY (24.0 * HOUR)
|
||||
#define WEEK (7.0 * DAY)
|
||||
#define MONTH (30.0 * DAY)
|
||||
|
||||
@implementation NSDate (NSDate_relative)
|
||||
|
||||
- (NSString *) relativeToNow
|
||||
{
|
||||
double diff = [[NSDate date] timeIntervalSinceDate: self];
|
||||
if (diff < MINUTE) {
|
||||
return @"right now";
|
||||
}
|
||||
else if (diff < 2 * MINUTE) {
|
||||
return @"a minute ago";
|
||||
}
|
||||
else if (diff < HOUR) {
|
||||
return [NSString stringWithFormat: @"%d minutes ago", (int)(diff / MINUTE)];
|
||||
}
|
||||
else if (diff < 2 * HOUR) {
|
||||
return @"an hour ago";
|
||||
}
|
||||
else if (diff < DAY) {
|
||||
return [NSString stringWithFormat: @"%d hours ago", (int)(diff / HOUR)];
|
||||
}
|
||||
else if (diff < 2 * DAY) {
|
||||
return @"yesterday";
|
||||
}
|
||||
else if (diff < WEEK) {
|
||||
return [NSString stringWithFormat: @"%d days ago", (int)(diff / DAY)];
|
||||
}
|
||||
else if (diff < 2 * WEEK) {
|
||||
return @"last week";
|
||||
}
|
||||
else if (diff < 4 * WEEK) {
|
||||
return [NSString stringWithFormat: @"%d weeks ago", (int)(diff / WEEK)];
|
||||
}
|
||||
else if (diff < 8 * WEEK) {
|
||||
return @"last month";
|
||||
}
|
||||
else if (diff < 12 * MONTH) {
|
||||
return [NSString stringWithFormat: @"%d months ago", (int)(diff / MONTH)];
|
||||
}
|
||||
else {
|
||||
return @"a long time ago";
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||