From a35cc590a65ebb37658d26b4f7e2bd77521409a2 Mon Sep 17 00:00:00 2001 From: James Chen Date: Tue, 18 Nov 2014 09:19:53 +0900 Subject: [PATCH] Place info tab to right --- Classes/GNPreferencesController.m | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Classes/GNPreferencesController.m b/Classes/GNPreferencesController.m index 5b4843f..8759bb6 100644 --- a/Classes/GNPreferencesController.m +++ b/Classes/GNPreferencesController.m @@ -13,6 +13,20 @@ #import "PrefsInfoViewController.h" #import "GNPreferences.h" +@interface GNToolbarFlexibleModule : NSObject + +@property (copy, readonly) NSString *identifier; + +@end + +@implementation GNToolbarFlexibleModule + +- (NSString *)identifier { + return NSToolbarFlexibleSpaceItemIdentifier; +} + +@end + @interface GNPreferencesController () @property (strong) id eventMonitor; @@ -31,6 +45,7 @@ + (GNPreferencesController *)sharedController { controller.modules = @[ [[PrefsAccountsViewController alloc] init], [[PrefsSettingsViewController alloc] init], + [[GNToolbarFlexibleModule alloc] init], [[PrefsInfoViewController alloc] init] ]; });