Commit c2ea03fd authored by Felix Paul Kühne's avatar Felix Paul Kühne

Remove old menu view controller

parent 784de957
......@@ -14,7 +14,6 @@
#import "UIDevice+SpeedCategory.h"
#import "VLCPlaylistViewController.h"
#import "VLCMenuViewController.h"
#import "VLCMovieViewController.h"
#import "PAPasscodeViewController.h"
#import "UINavigationController+Theme.h"
......
......@@ -9,7 +9,6 @@
//
#import "VLCHTTPFileDownloader.h"
#import "VLCMenuViewController.h"
#import "VLCAppDelegate.h"
@interface VLCHTTPFileDownloader ()
......
//
// VLCMenuViewController.h
// VLC for iOS
//
// Created by Felix Paul Kühne on 19.05.13.
// Copyright (c) 2013 VideoLAN. All rights reserved.
//
// Refer to the COPYING file of the official project for license.
//
#import <UIKit/UIKit.h>
@class VLCSettingsController;
@class IASKAppSettingsViewController;
@interface VLCMenuViewController : UIViewController
@property (strong, nonatomic) IASKAppSettingsViewController *settingsViewController;
@property (strong, nonatomic) VLCSettingsController *settingsController;
@property (strong, nonatomic) IBOutlet UIButton *allFilesButton;
@property (strong, nonatomic) IBOutlet UIButton *localNetworkButton;
@property (strong, nonatomic) IBOutlet UIButton *aboutButton;
@property (strong, nonatomic) IBOutlet UIButton *openNetworkStreamButton;
@property (strong, nonatomic) IBOutlet UIButton *downloadFromHTTPServerButton;
@property (strong, nonatomic) IBOutlet UIButton *settingsButton;
@property (strong, nonatomic) IBOutlet UISwitch *httpUploadServerSwitch;
@property (strong, nonatomic) IBOutlet UILabel *httpUploadLabel;
@property (strong, nonatomic) IBOutlet UILabel *httpUploadServerLocationLabel;
@property (strong, nonatomic) IBOutlet UIButton *dropboxButton;
- (IBAction)showAllFiles:(id)sender;
- (IBAction)showLocalNetwork:(id)sender;
- (IBAction)openAboutPanel:(id)sender;
- (IBAction)openNetworkStream:(id)sender;
- (IBAction)downloadFromHTTPServer:(id)sender;
- (IBAction)showDropbox:(id)sender;
- (IBAction)showSettings:(id)sender;
- (IBAction)toggleHTTPServer:(id)sender;
@end
//
// VLCMenuViewController.m
// VLC for iOS
//
// Created by Felix Paul Kühne on 19.05.13.
// Copyright (c) 2013 VideoLAN. All rights reserved.
//
// Refer to the COPYING file of the official project for license.
//
#import "VLCMenuViewController.h"
#import "VLCAppDelegate.h"
#import "VLCPlaylistViewController.h"
#import "VLCAboutViewController.h"
#import "VLCMovieViewController.h"
#import "VLCHTTPUploaderController.h"
#import "VLCSettingsController.h"
#import "HTTPServer.h"
#import "Reachability.h"
#import "VLCHTTPFileDownloader.h"
#import "IASKAppSettingsViewController.h"
#import "UINavigationController+Theme.h"
#import "UIBarButtonItem+Theme.h"
#import "VLCOpenNetworkStreamViewController.h"
#import "VLCHTTPDownloadViewController.h"
#import "VLCBugreporter.h"
#import "VLCLocalServerListViewController.h"
@interface VLCMenuViewController () {
VLCHTTPDownloadViewController *_downloadViewController;
Reachability *_reachability;
}
- (void)_presentViewController:(UIViewController *)viewController;
@property(nonatomic) VLCHTTPUploaderController *uploadController;
@property(nonatomic) VLCAppDelegate *appDelegate;
@end
@implementation VLCMenuViewController
- (void)dealloc
{
[_reachability stopNotifier];
[[NSNotificationCenter defaultCenter] removeObserver:self];
}
- (void)viewDidLoad
{
[super viewDidLoad];
self.view.frame = CGRectMake(0.0f, 0.0f, kGHRevealSidebarWidth, CGRectGetHeight(self.view.bounds));
self.view.autoresizingMask = UIViewAutoresizingFlexibleHeight;
[self.aboutButton setTitle:NSLocalizedString(@"ABOUT_APP", @"") forState:UIControlStateNormal];
[self.openNetworkStreamButton setTitle:NSLocalizedString(@"OPEN_NETWORK", @"") forState:UIControlStateNormal];
[self.downloadFromHTTPServerButton setTitle:NSLocalizedString(@"DOWNLOAD_FROM_HTTP", @"") forState:UIControlStateNormal];
self.httpUploadLabel.text = NSLocalizedString(@"HTTP_UPLOAD", @"");
[self.settingsButton setTitle:NSLocalizedString(@"Settings", @"") forState:UIControlStateNormal]; // plain text key to keep compatibility with InAppSettingsKit's upstream
_reachability = [Reachability reachabilityForLocalWiFi];
[_reachability startNotifier];
[self netReachabilityChanged:nil];
self.appDelegate = [[UIApplication sharedApplication] delegate];
self.uploadController = self.appDelegate.uploadController;
BOOL isHTTPServerOn = [[NSUserDefaults standardUserDefaults] boolForKey:kVLCSettingSaveHTTPUploadServerStatus];
[self.httpUploadServerSwitch setOn:isHTTPServerOn];
[self updateHTTPServerAddress];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(netReachabilityChanged:) name:kReachabilityChangedNotification object:nil];
}
- (void)viewWillAppear:(BOOL)animated
{
self.view.frame = CGRectMake(0.0f, 0.0f,kGHRevealSidebarWidth, CGRectGetHeight(self.view.bounds));
}
- (void)netReachabilityChanged:(NSNotification *)notification
{
if (_reachability.currentReachabilityStatus == ReachableViaWiFi) {
self.httpUploadServerSwitch.enabled = YES;
self.httpUploadServerLocationLabel.text = NSLocalizedString(@"HTTP_UPLOAD_SERVER_OFF", @"");
} else {
self.httpUploadServerSwitch.enabled = NO;
self.httpUploadServerSwitch.on = NO;
self.httpUploadServerLocationLabel.text = NSLocalizedString(@"HTTP_UPLOAD_NO_CONNECTIVITY", @"");
}
}
- (IBAction)showAllFiles:(id)sender
{
[self _presentViewController:[(VLCAppDelegate*)[UIApplication sharedApplication].delegate playlistViewController]];
}
- (IBAction)showLocalNetwork:(id)sender
{
UIViewController *localNetworkController = [[VLCLocalServerListViewController alloc] init];
[self _presentViewController:localNetworkController];
}
- (IBAction)openAboutPanel:(id)sender
{
UIViewController *aboutController = [[VLCAboutViewController alloc] initWithNibName:nil bundle:nil];
[self _presentViewController:aboutController];
}
- (IBAction)openNetworkStream:(id)sender
{
UIViewController *openURLController = [[VLCOpenNetworkStreamViewController alloc] initWithNibName:nil bundle:nil];
[self _presentViewController:openURLController];
}
- (IBAction)downloadFromHTTPServer:(id)sender
{
if (!_downloadViewController)
_downloadViewController = [[VLCHTTPDownloadViewController alloc] initWithNibName:nil bundle:nil];
[self _presentViewController:_downloadViewController];
}
- (IBAction)showSettings:(id)sender
{
if (!self.settingsController) {
self.settingsController = [[VLCSettingsController alloc] init];
}
if (!self.settingsViewController) {
self.settingsViewController = [[IASKAppSettingsViewController alloc] initWithStyle:UITableViewStyleGrouped];
self.settingsController.viewController = self.settingsViewController;
self.settingsViewController.navigationItem.leftBarButtonItem = [UIBarButtonItem themedBackButtonWithTarget:self.settingsViewController andSelector:@selector(dismiss:)];
}
self.settingsViewController.modalPresentationStyle = UIModalPresentationFormSheet;
self.settingsViewController.delegate = self.settingsController;
self.settingsViewController.showDoneButton = NO;
self.settingsViewController.showCreditsFooter = NO;
[self _presentViewController:self.settingsController.viewController];
}
- (void)updateHTTPServerAddress
{
HTTPServer *server = self.uploadController.httpServer;
if (server.isRunning)
self.httpUploadServerLocationLabel.text = [NSString stringWithFormat:@"http://%@:%i", [self.uploadController currentIPAddress], server.listeningPort];
else
self.httpUploadServerLocationLabel.text = NSLocalizedString(@"HTTP_UPLOAD_SERVER_OFF", @"");
}
- (IBAction)toggleHTTPServer:(UISwitch *)sender
{
[[NSUserDefaults standardUserDefaults] setBool:sender.on forKey:kVLCSettingSaveHTTPUploadServerStatus];
[self.uploadController changeHTTPServerState:sender.on];
[self updateHTTPServerAddress];
[[NSUserDefaults standardUserDefaults] synchronize];
}
- (IBAction)showDropbox:(id)sender
{
self.appDelegate.dropboxTableViewController.modalPresentationStyle = UIModalPresentationFormSheet;
[self _presentViewController:self.appDelegate.dropboxTableViewController];
}
#pragma mark - Private methods
- (void)_presentViewController:(UIViewController *)viewController
{
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:viewController];
[navController loadTheme];
GHRevealViewController *ghVC = [(VLCAppDelegate*)[UIApplication sharedApplication].delegate revealController];
ghVC.contentViewController = navController;
[ghVC toggleSidebar:NO duration:kGHRevealSidebarDefaultAnimationDuration];
}
#pragma mark - shake to support
- (BOOL)canBecomeFirstResponder {
return YES;
}
- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event {
if (motion == UIEventSubtypeMotionShake)
[[VLCBugreporter sharedInstance] handleBugreportRequest];
}
@end
......@@ -12,7 +12,6 @@
#import "AQGridView.h"
@class VLCMovieViewController;
@class VLCMenuViewController;
@class EmptyLibraryView;
@interface VLCPlaylistViewController : UIViewController <UITabBarDelegate, UIPopoverControllerDelegate>
......
......@@ -12,7 +12,6 @@
#import "VLCMovieViewController.h"
#import "VLCPlaylistTableViewCell.h"
#import "VLCPlaylistGridView.h"
#import "VLCMenuViewController.h"
#import "UINavigationController+Theme.h"
#import "NSString+SupportedMedia.h"
#import "VLCBugreporter.h"
......@@ -298,17 +297,6 @@
[self.tableView setEditing:editing animated:YES];
}
- (void)initMenuViewController
{
return;
VLCMenuViewController *menuViewController = [[VLCMenuViewController alloc] initWithNibName:nil bundle:nil];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:menuViewController];
[navigationController loadTheme];
self.menuViewController = navigationController;
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
navigationController.navigationBarHidden = YES;
}
- (IBAction)leftButtonAction:(id)sender
{
[[(VLCAppDelegate*)[UIApplication sharedApplication].delegate revealController] toggleSidebar:![(VLCAppDelegate*)[UIApplication sharedApplication].delegate revealController].sidebarShowing duration:kGHRevealSidebarDefaultAnimationDuration];
......
<?xml version="1.0" encoding="UTF-8"?>
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
<data>
<int key="IBDocument.SystemTarget">1296</int>
<string key="IBDocument.SystemVersion">12F33</string>
<string key="IBDocument.InterfaceBuilderVersion">3084</string>
<string key="IBDocument.AppKitVersion">1187.39</string>
<string key="IBDocument.HIToolboxVersion">626.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="NS.object.0">2083</string>
</object>
<array key="IBDocument.IntegratedClassDependencies">
<string>IBProxyObject</string>
<string>IBUIButton</string>
<string>IBUIImageView</string>
<string>IBUILabel</string>
<string>IBUIScrollView</string>
<string>IBUISwitch</string>
<string>IBUIView</string>
</array>
<array key="IBDocument.PluginDependencies">
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
</array>
<object class="NSMutableDictionary" key="IBDocument.Metadata">
<string key="NS.key.0">PluginDependencyRecalculationVersion</string>
<integer value="1" key="NS.object.0"/>
</object>
<array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
<object class="IBProxyObject" id="372490531">
<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
<object class="IBProxyObject" id="975951072">
<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
<object class="IBUIScrollView" id="322809953">
<reference key="NSNextResponder"/>
<int key="NSvFlags">276</int>
<array class="NSMutableArray" key="NSSubviews">
<object class="IBUIButton" id="233942944">
<reference key="NSNextResponder" ref="322809953"/>
<int key="NSvFlags">290</int>
<string key="NSFrame">{{0, 128}, {260, 60}}</string>
<reference key="NSSuperview" ref="322809953"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="306241553"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<object class="NSColor" key="IBUIBackgroundColor" id="937037271">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MC42NjY2NjY2NjY3AA</bytes>
</object>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<int key="IBUIContentHorizontalAlignment">0</int>
<int key="IBUIContentVerticalAlignment">0</int>
<string key="IBUINormalTitle">Open Network Stream</string>
<object class="NSColor" key="IBUIHighlightedTitleColor" id="878206399">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MQA</bytes>
</object>
<reference key="IBUINormalTitleColor" ref="937037271"/>
<object class="NSColor" key="IBUINormalTitleShadowColor" id="1025413593">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MC41AA</bytes>
</object>
<object class="NSCustomResource" key="IBUINormalBackgroundImage" id="181125913">
<string key="NSClassName">NSImage</string>
<string key="NSResourceName">menuBtnBck.png</string>
</object>
<object class="IBUIFontDescription" key="IBUIFontDescription" id="886215057">
<int key="type">2</int>
<double key="pointSize">15</double>
</object>
<object class="NSFont" key="IBUIFont" id="388488631">
<string key="NSName">Helvetica-Bold</string>
<double key="NSSize">15</double>
<int key="NSfFlags">16</int>
</object>
</object>
<object class="IBUIButton" id="270820867">
<reference key="NSNextResponder" ref="322809953"/>
<int key="NSvFlags">290</int>
<string key="NSFrame">{{-30, 64}, {320, 60}}</string>
<reference key="NSSuperview" ref="322809953"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="233942944"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<reference key="IBUIBackgroundColor" ref="937037271"/>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<int key="IBUIContentHorizontalAlignment">0</int>
<int key="IBUIContentVerticalAlignment">0</int>
<string key="IBUINormalTitle">Local Network</string>
<reference key="IBUIHighlightedTitleColor" ref="878206399"/>
<reference key="IBUINormalTitleColor" ref="937037271"/>
<reference key="IBUINormalTitleShadowColor" ref="1025413593"/>
<reference key="IBUINormalBackgroundImage" ref="181125913"/>
<reference key="IBUIFontDescription" ref="886215057"/>
<reference key="IBUIFont" ref="388488631"/>
</object>
<object class="IBUIButton" id="306241553">
<reference key="NSNextResponder" ref="322809953"/>
<int key="NSvFlags">290</int>
<string key="NSFrame">{{0, 192}, {260, 60}}</string>
<reference key="NSSuperview" ref="322809953"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="136452396"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<reference key="IBUIBackgroundColor" ref="937037271"/>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<int key="IBUIContentHorizontalAlignment">0</int>
<int key="IBUIContentVerticalAlignment">0</int>
<string key="IBUINormalTitle">Download from HTTP Server</string>
<reference key="IBUIHighlightedTitleColor" ref="878206399"/>
<reference key="IBUINormalTitleColor" ref="937037271"/>
<reference key="IBUINormalTitleShadowColor" ref="1025413593"/>
<reference key="IBUINormalBackgroundImage" ref="181125913"/>
<reference key="IBUIFontDescription" ref="886215057"/>
<reference key="IBUIFont" ref="388488631"/>
</object>
<object class="IBUIButton" id="665933893">
<reference key="NSNextResponder" ref="322809953"/>
<int key="NSvFlags">290</int>
<string key="NSFrame">{{0, 387}, {260, 60}}</string>
<reference key="NSSuperview" ref="322809953"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="1021636329"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<reference key="IBUIBackgroundColor" ref="937037271"/>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<int key="IBUIContentHorizontalAlignment">0</int>
<int key="IBUIContentVerticalAlignment">0</int>
<string key="IBUINormalTitle">Settings</string>
<reference key="IBUIHighlightedTitleColor" ref="878206399"/>
<reference key="IBUINormalTitleColor" ref="937037271"/>
<reference key="IBUINormalTitleShadowColor" ref="1025413593"/>
<reference key="IBUINormalBackgroundImage" ref="181125913"/>
<reference key="IBUIFontDescription" ref="886215057"/>
<reference key="IBUIFont" ref="388488631"/>
</object>
<object class="IBUIButton" id="1021636329">
<reference key="NSNextResponder" ref="322809953"/>
<int key="NSvFlags">290</int>
<string key="NSFrame">{{0, 451}, {260, 60}}</string>
<reference key="NSSuperview" ref="322809953"/>
<reference key="NSWindow"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<reference key="IBUIBackgroundColor" ref="937037271"/>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<int key="IBUIContentHorizontalAlignment">0</int>
<int key="IBUIContentVerticalAlignment">0</int>
<string key="IBUINormalTitle">About VLC for iOS</string>
<reference key="IBUIHighlightedTitleColor" ref="878206399"/>
<reference key="IBUINormalTitleColor" ref="937037271"/>
<reference key="IBUINormalTitleShadowColor" ref="1025413593"/>
<reference key="IBUINormalBackgroundImage" ref="181125913"/>
<reference key="IBUIFontDescription" ref="886215057"/>
<reference key="IBUIFont" ref="388488631"/>
</object>
<object class="IBUIButton" id="502729697">
<reference key="NSNextResponder" ref="322809953"/>
<int key="NSvFlags">290</int>
<string key="NSFrame">{{0, 323}, {260, 60}}</string>
<reference key="NSSuperview" ref="322809953"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="665933893"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<reference key="IBUIBackgroundColor" ref="937037271"/>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<int key="IBUIContentHorizontalAlignment">0</int>
<int key="IBUIContentVerticalAlignment">0</int>
<reference key="IBUIHighlightedTitleColor" ref="878206399"/>
<reference key="IBUINormalTitleColor" ref="937037271"/>
<reference key="IBUINormalTitleShadowColor" ref="1025413593"/>
<object class="NSCustomResource" key="IBUINormalImage">
<string key="NSClassName">NSImage</string>
<string key="NSResourceName">dropboxLabel.png</string>
</object>
<reference key="IBUINormalBackgroundImage" ref="181125913"/>
<reference key="IBUIFontDescription" ref="886215057"/>
<reference key="IBUIFont" ref="388488631"/>
</object>
<object class="IBUIView" id="136452396">
<reference key="NSNextResponder" ref="322809953"/>
<int key="NSvFlags">290</int>
<array class="NSMutableArray" key="NSSubviews">
<object class="IBUIImageView" id="643865985">
<reference key="NSNextResponder" ref="136452396"/>
<int key="NSvFlags">290</int>
<string key="NSFrameSize">{260, 63}</string>
<reference key="NSSuperview" ref="136452396"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="342130383"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<reference key="IBUIImage" ref="181125913"/>
</object>
<object class="IBUISwitch" id="854423543">
<reference key="NSNextResponder" ref="136452396"/>
<int key="NSvFlags">289</int>
<string key="NSFrame">{{148, 5}, {94, 27}}</string>
<reference key="NSSuperview" ref="136452396"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="800651050"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<int key="IBUIContentHorizontalAlignment">0</int>
<int key="IBUIContentVerticalAlignment">0</int>
<object class="NSColor" key="IBUIOnTintColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MCAwLjYxAA</bytes>
<object class="NSColorSpace" key="NSCustomColorSpace">
<int key="NSID">2</int>
</object>
</object>
</object>
<object class="IBUILabel" id="342130383">
<reference key="NSNextResponder" ref="136452396"/>
<int key="NSvFlags">290</int>
<string key="NSFrame">{{20, 8}, {135, 21}}</string>
<reference key="NSSuperview" ref="136452396"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="854423543"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
<int key="IBUIContentMode">7</int>
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<string key="IBUIText">HTTP Upload</string>
<reference key="IBUITextColor" ref="937037271"/>
<nil key="IBUIHighlightedColor"/>
<int key="IBUIBaselineAdjustment">0</int>
<int key="IBUITextAlignment">1</int>
<reference key="IBUIFontDescription" ref="886215057"/>
<reference key="IBUIFont" ref="388488631"/>
<bool key="IBUIAdjustsFontSizeToFit">NO</bool>
</object>
<object class="IBUILabel" id="800651050">
<reference key="NSNextResponder" ref="136452396"/>
<int key="NSvFlags">290</int>
<string key="NSFrame">{{20, 37}, {220, 21}}</string>
<reference key="NSSuperview" ref="136452396"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="502729697"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
<int key="IBUIContentMode">7</int>
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<string key="IBUIText">Inactive Server</string>
<reference key="IBUITextColor" ref="937037271"/>
<nil key="IBUIHighlightedColor"/>
<int key="IBUIBaselineAdjustment">0</int>
<int key="IBUITextAlignment">1</int>
<object class="IBUIFontDescription" key="IBUIFontDescription">
<int key="type">1</int>
<double key="pointSize">14</double>
</object>
<object class="NSFont" key="IBUIFont">
<string key="NSName">Helvetica</string>
<double key="NSSize">14</double>
<int key="NSfFlags">16</int>
</object>
<bool key="IBUIAdjustsFontSizeToFit">NO</bool>
</object>
</array>
<string key="NSFrame">{{0, 256}, {260, 63}}</string>
<reference key="NSSuperview" ref="322809953"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="643865985"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<reference key="IBUIBackgroundColor" ref="937037271"/>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
<object class="IBUIButton" id="197466448">
<reference key="NSNextResponder" ref="322809953"/>
<int key="NSvFlags">290</int>
<string key="NSFrameSize">{260, 60}</string>
<reference key="NSSuperview" ref="322809953"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="270820867"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<reference key="IBUIBackgroundColor" ref="937037271"/>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<int key="IBUIContentHorizontalAlignment">0</int>
<int key="IBUIContentVerticalAlignment">0</int>
<string key="IBUINormalTitle">Media Library</string>
<reference key="IBUIHighlightedTitleColor" ref="878206399"/>
<reference key="IBUINormalTitleColor" ref="937037271"/>
<reference key="IBUINormalTitleShadowColor" ref="1025413593"/>
<reference key="IBUINormalBackgroundImage" ref="181125913"/>
<reference key="IBUIFontDescription" ref="886215057"/>
<reference key="IBUIFont" ref="388488631"/>
</object>
</array>
<string key="NSFrameSize">{260, 511}</string>
<reference key="NSSuperview"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="197466448"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MAA</bytes>
</object>
<bool key="IBUIClipsSubviews">YES</bool>
<bool key="IBUIMultipleTouchEnabled">YES</bool>
<object class="IBUISimulatedSizeMetrics" key="IBUISimulatedDestinationMetrics">
<string key="IBUISimulatedSizeMetricsClass">IBUISimulatedFreeformSizeMetricsSentinel</string>
<string key="IBUIDisplayName">Freeform</string>
</object>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<bool key="IBUIAlwaysBounceVertical">YES</bool>
</object>
</array>
<object class="IBObjectContainer" key="IBDocument.Objects">
<array class="NSMutableArray" key="connectionRecords">
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">openNetworkStreamButton</string>
<reference key="source" ref="372490531"/>
<reference key="destination" ref="233942944"/>
</object>
<int key="connectionID">41</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">