Browse Source

The future is now.

Felix Paul Kühne 11 years ago
parent
commit
4864f62819

+ 3 - 3
AspenProject/UIBarButtonItem+Theme.m

@@ -17,7 +17,7 @@
                                                                       style:UIBarButtonItemStyleBordered
                                                                       style:UIBarButtonItemStyleBordered
                                                                      target:target
                                                                      target:target
                                                                      action:selector];
                                                                      action:selector];
-    if (SYSTEM_RUNS_IN_THE_FUTURE)
+    if (SYSTEM_RUNS_IOS7_OR_LATER)
         doneButton.tintColor = [UIColor whiteColor];
         doneButton.tintColor = [UIColor whiteColor];
     else {
     else {
         [doneButton setBackgroundImage:[UIImage imageNamed:@"doneButton"]
         [doneButton setBackgroundImage:[UIImage imageNamed:@"doneButton"]
@@ -38,7 +38,7 @@
                                                                    style:UIBarButtonItemStyleBordered
                                                                    style:UIBarButtonItemStyleBordered
                                                                   target:target
                                                                   target:target
                                                                   action:selector];
                                                                   action:selector];
-    if (SYSTEM_RUNS_IN_THE_FUTURE)
+    if (SYSTEM_RUNS_IOS7_OR_LATER)
         backButton.tintColor = [UIColor whiteColor];
         backButton.tintColor = [UIColor whiteColor];
     else {
     else {
         [backButton setBackgroundImage:[[UIImage imageNamed:@"backButton"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 12, 0, 6)]
         [backButton setBackgroundImage:[[UIImage imageNamed:@"backButton"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 12, 0, 6)]
@@ -56,7 +56,7 @@
 + (UIBarButtonItem *)themedRevealMenuButtonWithTarget:(id)target andSelector:(SEL)selector
 + (UIBarButtonItem *)themedRevealMenuButtonWithTarget:(id)target andSelector:(SEL)selector
 {
 {
     UIBarButtonItem *menuButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"menuCone"] style:UIBarButtonItemStyleBordered target:target action:selector];
     UIBarButtonItem *menuButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"menuCone"] style:UIBarButtonItemStyleBordered target:target action:selector];
-    if (SYSTEM_RUNS_IN_THE_FUTURE)
+    if (SYSTEM_RUNS_IOS7_OR_LATER)
         menuButton.tintColor = [UIColor whiteColor];
         menuButton.tintColor = [UIColor whiteColor];
     else {
     else {
         [menuButton setBackgroundImage:[UIImage imageNamed:@"button"] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
         [menuButton setBackgroundImage:[UIImage imageNamed:@"button"] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];

+ 1 - 1
AspenProject/UINavigationController+Theme.m

@@ -14,7 +14,7 @@
 - (void)loadTheme
 - (void)loadTheme
 {
 {
     UINavigationBar *navBar = self.navigationBar;
     UINavigationBar *navBar = self.navigationBar;
-    if (!SYSTEM_RUNS_IN_THE_FUTURE) {
+    if (!SYSTEM_RUNS_IOS7_OR_LATER) {
         [navBar setBackgroundImage:[UIImage imageNamed:@"navBarBackground"]
         [navBar setBackgroundImage:[UIImage imageNamed:@"navBarBackground"]
                      forBarMetrics:UIBarMetricsDefault];
                      forBarMetrics:UIBarMetricsDefault];
         navBar.barStyle = UIBarStyleBlack;
         navBar.barStyle = UIBarStyleBlack;

+ 2 - 2
AspenProject/VLC for iOS-Prefix.pch

@@ -22,9 +22,9 @@
 #define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v)  ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
 #define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v)  ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
 
 
 #ifdef __IPHONE_7_0
 #ifdef __IPHONE_7_0
-#define SYSTEM_RUNS_IN_THE_FUTURE SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0")
+#define SYSTEM_RUNS_IOS7_OR_LATER SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0")
 #else
 #else
-#define SYSTEM_RUNS_IN_THE_FUTURE NO
+#define SYSTEM_RUNS_IOS7_OR_LATER NO
 #endif
 #endif
 
 
 #ifndef NDEBUG
 #ifndef NDEBUG

+ 1 - 1
AspenProject/VLCAboutViewController.m

@@ -21,7 +21,7 @@
     self.navigationItem.titleView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"title"]];
     self.navigationItem.titleView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"title"]];
 
 
     UIBarButtonItem *contributeButton = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"BUTTON_CONTRIBUTE",@"") style:UIBarButtonItemStyleBordered target:self action:@selector(openContributePage:)];
     UIBarButtonItem *contributeButton = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"BUTTON_CONTRIBUTE",@"") style:UIBarButtonItemStyleBordered target:self action:@selector(openContributePage:)];
-    if (SYSTEM_RUNS_IN_THE_FUTURE)
+    if (SYSTEM_RUNS_IOS7_OR_LATER)
         contributeButton.tintColor = [UIColor whiteColor];
         contributeButton.tintColor = [UIColor whiteColor];
     else {
     else {
         [contributeButton setBackgroundImage:[UIImage imageNamed:@"button"] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
         [contributeButton setBackgroundImage:[UIImage imageNamed:@"button"] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];

+ 1 - 1
AspenProject/VLCDownloadViewController.m

@@ -78,7 +78,7 @@
 
 
 - (void)viewWillDisappear:(BOOL)animated
 - (void)viewWillDisappear:(BOOL)animated
 {
 {
-    if (SYSTEM_RUNS_IN_THE_FUTURE)
+    if (SYSTEM_RUNS_IOS7_OR_LATER)
         self.navigationController.navigationBar.translucent = YES;
         self.navigationController.navigationBar.translucent = YES;
     [super viewWillDisappear:animated];
     [super viewWillDisappear:animated];
 }
 }

+ 1 - 1
AspenProject/VLCMenuTableViewController.m

@@ -77,7 +77,7 @@
     self.view = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, kGHRevealSidebarWidth, CGRectGetHeight(self.view.bounds))];
     self.view = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, kGHRevealSidebarWidth, CGRectGetHeight(self.view.bounds))];
     [self.view addSubview:_tableView];
     [self.view addSubview:_tableView];
 
 
-    if (SYSTEM_RUNS_IN_THE_FUTURE) {
+    if (SYSTEM_RUNS_IOS7_OR_LATER) {
         UIView *brandingBackgroundView = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, kGHRevealSidebarWidth, 64.0f)];
         UIView *brandingBackgroundView = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, kGHRevealSidebarWidth, 64.0f)];
         brandingBackgroundView.backgroundColor = [UIColor colorWithRed:0.1608 green:0.1608 blue:0.1608 alpha:1.0000];
         brandingBackgroundView.backgroundColor = [UIColor colorWithRed:0.1608 green:0.1608 blue:0.1608 alpha:1.0000];
         [self.view addSubview:brandingBackgroundView];
         [self.view addSubview:brandingBackgroundView];

+ 3 - 3
AspenProject/VLCMovieViewController.m

@@ -199,7 +199,7 @@
     [self.aspectRatioButton setBackgroundImage:[UIImage imageNamed:@"ratioButton"] forState:UIControlStateNormal];
     [self.aspectRatioButton setBackgroundImage:[UIImage imageNamed:@"ratioButton"] forState:UIControlStateNormal];
     [self.aspectRatioButton setBackgroundImage:[UIImage imageNamed:@"ratioButtonHighlight"] forState:UIControlStateHighlighted];
     [self.aspectRatioButton setBackgroundImage:[UIImage imageNamed:@"ratioButtonHighlight"] forState:UIControlStateHighlighted];
     [self.aspectRatioButton setImage:[UIImage imageNamed:@"ratioIcon"] forState:UIControlStateNormal];
     [self.aspectRatioButton setImage:[UIImage imageNamed:@"ratioIcon"] forState:UIControlStateNormal];
-    if (SYSTEM_RUNS_IN_THE_FUTURE) {
+    if (SYSTEM_RUNS_IOS7_OR_LATER) {
         self.backButton.tintColor = [UIColor colorWithRed:(190.0f/255.0f) green:(190.0f/255.0f) blue:(190.0f/255.0f) alpha:1.];
         self.backButton.tintColor = [UIColor colorWithRed:(190.0f/255.0f) green:(190.0f/255.0f) blue:(190.0f/255.0f) alpha:1.];
         self.toolbar.tintColor = [UIColor whiteColor];
         self.toolbar.tintColor = [UIColor whiteColor];
         self.toolbar.barTintColor = [UIColor colorWithWhite:0.f alpha:1.f];
         self.toolbar.barTintColor = [UIColor colorWithWhite:0.f alpha:1.f];
@@ -271,7 +271,7 @@
 
 
     [self.navigationController setNavigationBarHidden:YES animated:YES];
     [self.navigationController setNavigationBarHidden:YES animated:YES];
 
 
-    if (!SYSTEM_RUNS_IN_THE_FUTURE) {
+    if (!SYSTEM_RUNS_IOS7_OR_LATER) {
         if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
         if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
             [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleBlackTranslucent;
             [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleBlackTranslucent;
     }
     }
@@ -448,7 +448,7 @@
         _idleTimer = nil;
         _idleTimer = nil;
     }
     }
     [self.navigationController setNavigationBarHidden:NO animated:YES];
     [self.navigationController setNavigationBarHidden:NO animated:YES];
-    if (!SYSTEM_RUNS_IN_THE_FUTURE)
+    if (!SYSTEM_RUNS_IOS7_OR_LATER)
         [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleBlackOpaque;
         [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleBlackOpaque;
     [[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationFade];
     [[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationFade];
     [super viewWillDisappear:animated];
     [super viewWillDisappear:animated];

+ 2 - 2
AspenProject/VLCNetworkLoginViewController.m

@@ -74,7 +74,7 @@
 
 
 - (IBAction)dismissWithAnimation:(id)sender
 - (IBAction)dismissWithAnimation:(id)sender
 {
 {
-    if (SYSTEM_RUNS_IN_THE_FUTURE)
+    if (SYSTEM_RUNS_IOS7_OR_LATER)
         self.navigationController.navigationBar.translucent = YES;
         self.navigationController.navigationBar.translucent = YES;
 
 
     if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
     if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
@@ -85,7 +85,7 @@
 
 
 - (IBAction)dismiss:(id)sender
 - (IBAction)dismiss:(id)sender
 {
 {
-    if (SYSTEM_RUNS_IN_THE_FUTURE)
+    if (SYSTEM_RUNS_IOS7_OR_LATER)
         self.navigationController.navigationBar.translucent = YES;
         self.navigationController.navigationBar.translucent = YES;
 
 
     if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
     if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)

+ 1 - 1
AspenProject/VLCOpenNetworkStreamViewController.m

@@ -68,7 +68,7 @@
 
 
 - (void)viewWillDisappear:(BOOL)animated
 - (void)viewWillDisappear:(BOOL)animated
 {
 {
-    if (SYSTEM_RUNS_IN_THE_FUTURE)
+    if (SYSTEM_RUNS_IOS7_OR_LATER)
         self.navigationController.navigationBar.translucent = YES;
         self.navigationController.navigationBar.translucent = YES;
 
 
     NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
     NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];

+ 7 - 7
AspenProject/VLCPlaylistTableViewCell.m

@@ -18,7 +18,7 @@
 + (VLCPlaylistTableViewCell *)cellWithReuseIdentifier:(NSString *)ident
 + (VLCPlaylistTableViewCell *)cellWithReuseIdentifier:(NSString *)ident
 {
 {
     NSArray *nibContentArray;
     NSArray *nibContentArray;
-    if (SYSTEM_RUNS_IN_THE_FUTURE)
+    if (SYSTEM_RUNS_IOS7_OR_LATER)
         nibContentArray = [[NSBundle mainBundle] loadNibNamed:@"VLCFuturePlaylistTableViewCell" owner:nil options:nil];
         nibContentArray = [[NSBundle mainBundle] loadNibNamed:@"VLCFuturePlaylistTableViewCell" owner:nil options:nil];
     else
     else
         nibContentArray = [[NSBundle mainBundle] loadNibNamed:@"VLCPlaylistTableViewCell" owner:nil options:nil];
         nibContentArray = [[NSBundle mainBundle] loadNibNamed:@"VLCPlaylistTableViewCell" owner:nil options:nil];
@@ -122,7 +122,7 @@
 
 
 + (CGFloat)heightOfCell
 + (CGFloat)heightOfCell
 {
 {
-    if (SYSTEM_RUNS_IN_THE_FUTURE)
+    if (SYSTEM_RUNS_IOS7_OR_LATER)
         return 90.;
         return 90.;
 
 
     return 80.;
     return 80.;
@@ -134,7 +134,7 @@
 {
 {
     self.titleLabel.text = show.name;
     self.titleLabel.text = show.name;
     NSUInteger count = show.episodes.count;
     NSUInteger count = show.episodes.count;
-    if (SYSTEM_RUNS_IN_THE_FUTURE) {
+    if (SYSTEM_RUNS_IOS7_OR_LATER) {
         NSString *string = @"";
         NSString *string = @"";
         if (show.releaseYear)
         if (show.releaseYear)
             string = [NSString stringWithFormat:@"%@ — ", show.releaseYear];
             string = [NSString stringWithFormat:@"%@ — ", show.releaseYear];
@@ -152,7 +152,7 @@
 {
 {
     MLFile *anyFileFromTrack = albumTrack.files.anyObject;
     MLFile *anyFileFromTrack = albumTrack.files.anyObject;
 
 
-    if (SYSTEM_RUNS_IN_THE_FUTURE)
+    if (SYSTEM_RUNS_IOS7_OR_LATER)
         self.subtitleLabel.text = [NSString stringWithFormat:@"%@ — %@ — %@", albumTrack.artist, [NSString stringWithFormat:NSLocalizedString(@"LIBRARY_TRACK_N", @""), albumTrack.trackNumber.intValue], [VLCTime timeWithNumber:[anyFileFromTrack duration]]];
         self.subtitleLabel.text = [NSString stringWithFormat:@"%@ — %@ — %@", albumTrack.artist, [NSString stringWithFormat:NSLocalizedString(@"LIBRARY_TRACK_N", @""), albumTrack.trackNumber.intValue], [VLCTime timeWithNumber:[anyFileFromTrack duration]]];
     else {
     else {
         self.artistNameLabel.text = albumTrack.artist;
         self.artistNameLabel.text = albumTrack.artist;
@@ -184,7 +184,7 @@
     self.titleLabel.text = album.name;
     self.titleLabel.text = album.name;
     MLAlbumTrack *anyTrack = [album.tracks anyObject];
     MLAlbumTrack *anyTrack = [album.tracks anyObject];
     NSUInteger count = album.tracks.count;
     NSUInteger count = album.tracks.count;
-    if (SYSTEM_RUNS_IN_THE_FUTURE) {
+    if (SYSTEM_RUNS_IOS7_OR_LATER) {
         NSMutableString *string = [[NSMutableString alloc] init];
         NSMutableString *string = [[NSMutableString alloc] init];
         if (anyTrack) {
         if (anyTrack) {
             [string appendString:anyTrack.artist];
             [string appendString:anyTrack.artist];
@@ -205,7 +205,7 @@
 - (void)_configureForMLFile:(MLFile *)mediaFile
 - (void)_configureForMLFile:(MLFile *)mediaFile
 {
 {
     if (mediaFile.isAlbumTrack) {
     if (mediaFile.isAlbumTrack) {
-        if (SYSTEM_RUNS_IN_THE_FUTURE) {
+        if (SYSTEM_RUNS_IOS7_OR_LATER) {
             NSString *string = @"";
             NSString *string = @"";
             if (mediaFile.albumTrack.artist)
             if (mediaFile.albumTrack.artist)
                 string = [NSString stringWithFormat:@"%@ — ", mediaFile.albumTrack.artist];
                 string = [NSString stringWithFormat:@"%@ — ", mediaFile.albumTrack.artist];
@@ -240,7 +240,7 @@
 {
 {
     CGFloat position = mediaItem.lastPosition.floatValue;
     CGFloat position = mediaItem.lastPosition.floatValue;
 
 
-    if (SYSTEM_RUNS_IN_THE_FUTURE) {
+    if (SYSTEM_RUNS_IOS7_OR_LATER) {
         CGFloat duration = mediaItem.duration.floatValue;
         CGFloat duration = mediaItem.duration.floatValue;
         if (position > .1f && position < .95f) {
         if (position > .1f && position < .95f) {
             [(UITextView*)self.mediaIsUnreadView setText:[NSString stringWithFormat:NSLocalizedString(@"LIBRARY_MINUTES_LEFT", @""), [[VLCTime timeWithInt:(duration * position - duration)] minuteStringValue]]];
             [(UITextView*)self.mediaIsUnreadView setText:[NSString stringWithFormat:NSLocalizedString(@"LIBRARY_MINUTES_LEFT", @""), [[VLCTime timeWithInt:(duration * position - duration)] minuteStringValue]]];

+ 9 - 9
AspenProject/VLCPlaylistViewController.m

@@ -49,7 +49,7 @@
         _tableView.dataSource = self;
         _tableView.dataSource = self;
         self.view = _tableView;
         self.view = _tableView;
 
 
-        if (SYSTEM_RUNS_IN_THE_FUTURE) {
+        if (SYSTEM_RUNS_IOS7_OR_LATER) {
             UILongPressGestureRecognizer *gestureRecognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(tableViewLongTouchGestureAction:)];
             UILongPressGestureRecognizer *gestureRecognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(tableViewLongTouchGestureAction:)];
             [self.view addGestureRecognizer:gestureRecognizer];
             [self.view addGestureRecognizer:gestureRecognizer];
         }
         }
@@ -63,7 +63,7 @@
         _collectionView.dataSource = self;
         _collectionView.dataSource = self;
         self.view = _collectionView;
         self.view = _collectionView;
 
 
-        if (SYSTEM_RUNS_IN_THE_FUTURE)
+        if (SYSTEM_RUNS_IOS7_OR_LATER)
             [_collectionView registerNib:[UINib nibWithNibName:@"VLCFuturePlaylistCollectionViewCell" bundle:nil] forCellWithReuseIdentifier:@"PlaylistCell"];
             [_collectionView registerNib:[UINib nibWithNibName:@"VLCFuturePlaylistCollectionViewCell" bundle:nil] forCellWithReuseIdentifier:@"PlaylistCell"];
         else
         else
             [_collectionView registerNib:[UINib nibWithNibName:@"VLCPlaylistCollectionViewCell" bundle:nil] forCellWithReuseIdentifier:@"PlaylistCell"];
             [_collectionView registerNib:[UINib nibWithNibName:@"VLCPlaylistCollectionViewCell" bundle:nil] forCellWithReuseIdentifier:@"PlaylistCell"];
@@ -101,7 +101,7 @@
 
 
     self.navigationItem.leftBarButtonItem = _menuButton;
     self.navigationItem.leftBarButtonItem = _menuButton;
 
 
-    if (SYSTEM_RUNS_IN_THE_FUTURE)
+    if (SYSTEM_RUNS_IOS7_OR_LATER)
         self.editButtonItem.tintColor = [UIColor whiteColor];
         self.editButtonItem.tintColor = [UIColor whiteColor];
     else {
     else {
         [self.editButtonItem setBackgroundImage:[UIImage imageNamed:@"button"]
         [self.editButtonItem setBackgroundImage:[UIImage imageNamed:@"button"]
@@ -144,7 +144,7 @@
         [self updateViewContents];
         [self updateViewContents];
     [[MLMediaLibrary sharedMediaLibrary] performSelector:@selector(libraryDidAppear) withObject:nil afterDelay:1.];
     [[MLMediaLibrary sharedMediaLibrary] performSelector:@selector(libraryDidAppear) withObject:nil afterDelay:1.];
 
 
-    if (SYSTEM_RUNS_IN_THE_FUTURE)
+    if (SYSTEM_RUNS_IOS7_OR_LATER)
         [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;
         [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;
 }
 }
 
 
@@ -382,7 +382,7 @@
 
 
 - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath
 - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath
 {
 {
-    if (SYSTEM_RUNS_IN_THE_FUTURE)
+    if (SYSTEM_RUNS_IOS7_OR_LATER)
         return CGSizeMake(334.0, 191.0);
         return CGSizeMake(334.0, 191.0);
 
 
     return CGSizeMake(298.0, 220.0);
     return CGSizeMake(298.0, 220.0);
@@ -390,21 +390,21 @@
 
 
 - (UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout insetForSectionAtIndex:(NSInteger)section
 - (UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout insetForSectionAtIndex:(NSInteger)section
 {
 {
-    if (SYSTEM_RUNS_IN_THE_FUTURE)
+    if (SYSTEM_RUNS_IOS7_OR_LATER)
         return UIEdgeInsetsMake(0.0, 0.0, 0.0, 0.0);
         return UIEdgeInsetsMake(0.0, 0.0, 0.0, 0.0);
     return UIEdgeInsetsMake(0.0, 34.0, 0.0, 34.0);
     return UIEdgeInsetsMake(0.0, 34.0, 0.0, 34.0);
 }
 }
 
 
 - (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout minimumLineSpacingForSectionAtIndex:(NSInteger)section
 - (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout minimumLineSpacingForSectionAtIndex:(NSInteger)section
 {
 {
-    if (SYSTEM_RUNS_IN_THE_FUTURE)
+    if (SYSTEM_RUNS_IOS7_OR_LATER)
         return 0.0;
         return 0.0;
     return 10.0;
     return 10.0;
 }
 }
 
 
 - (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout minimumInteritemSpacingForSectionAtIndex:(NSInteger)section
 - (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout minimumInteritemSpacingForSectionAtIndex:(NSInteger)section
 {
 {
-    if (SYSTEM_RUNS_IN_THE_FUTURE)
+    if (SYSTEM_RUNS_IOS7_OR_LATER)
         return 0.0;
         return 0.0;
     return 10.0;
     return 10.0;
 }
 }
@@ -426,7 +426,7 @@
     UIBarButtonItem *editButton = self.editButtonItem;
     UIBarButtonItem *editButton = self.editButtonItem;
     NSString *editImage = editing? @"doneButton": @"button";
     NSString *editImage = editing? @"doneButton": @"button";
     NSString *editImageHighlight = editing? @"doneButtonHighlight": @"buttonHighlight";
     NSString *editImageHighlight = editing? @"doneButtonHighlight": @"buttonHighlight";
-    if (SYSTEM_RUNS_IN_THE_FUTURE)
+    if (SYSTEM_RUNS_IOS7_OR_LATER)
         editButton.tintColor = [UIColor whiteColor];
         editButton.tintColor = [UIColor whiteColor];
     else {
     else {
         [editButton setBackgroundImage:[UIImage imageNamed:editImage] forState:UIControlStateNormal
         [editButton setBackgroundImage:[UIImage imageNamed:editImage] forState:UIControlStateNormal

+ 2 - 2
AspenProject/VLCSlider.m

@@ -26,7 +26,7 @@
 {
 {
     CGRect returnValue = [super trackRectForBounds:bounds];
     CGRect returnValue = [super trackRectForBounds:bounds];
     returnValue.origin.x = 5.;
     returnValue.origin.x = 5.;
-    if (!SYSTEM_RUNS_IN_THE_FUTURE)
+    if (!SYSTEM_RUNS_IOS7_OR_LATER)
         returnValue.origin.y = 7.;
         returnValue.origin.y = 7.;
     returnValue.size.width = bounds.size.width - 10.;
     returnValue.size.width = bounds.size.width - 10.;
     return returnValue;
     return returnValue;
@@ -50,7 +50,7 @@
 {
 {
     CGRect returnValue = [super trackRectForBounds:bounds];
     CGRect returnValue = [super trackRectForBounds:bounds];
     returnValue.origin.x = 5.;
     returnValue.origin.x = 5.;
-    if (!SYSTEM_RUNS_IN_THE_FUTURE)
+    if (!SYSTEM_RUNS_IOS7_OR_LATER)
         returnValue.origin.y = 7.;
         returnValue.origin.y = 7.;
     returnValue.size.width = bounds.size.width - 10.;
     returnValue.size.width = bounds.size.width - 10.;
     return returnValue;
     return returnValue;