Skip to content

Commit

Permalink
FTP Commentouted
Browse files Browse the repository at this point in the history
  • Loading branch information
tnantoka committed Oct 2, 2010
1 parent ba94b8d commit f698833
Show file tree
Hide file tree
Showing 24 changed files with 554 additions and 5,591 deletions.
1 change: 0 additions & 1 deletion Classes/EdhitaAppDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#import "FTPLocalNavigationController.h"
#import "FTPRemoteNavigationController.h"


@interface EdhitaAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;

Expand Down
7 changes: 5 additions & 2 deletions Classes/EdhitaAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
ftpViewController_ = [[UISplitViewController alloc] init];
ftpViewController_.viewControllers = [NSArray arrayWithObjects:localNav, remoteNav, nil];
ftpViewController_.delegate = remoteNav;

/* TODO:FTP
[window addSubview:ftpViewController_.view];
// [ftpViewController_.view removeFromSuperview];
ftpViewController_.view.hidden = YES;

*/
[window makeKeyAndVisible];

return YES;
Expand Down Expand Up @@ -123,6 +123,9 @@ - (void) rootViewChangesFtp {
// splitViewController_.view.hidden = YES;
// ftpViewController_.view.hidden = NO;

// windowが空になると方向が反映されないのかと思ってdummyのcontrollerを
// rotate=YESにして非表示にしておいたけど駄目だった。

// もどるとき
/*
[ftpViewController_.view removeFromSuperview];
Expand Down
4 changes: 3 additions & 1 deletion Classes/RootViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,12 @@ - (id)initWithPath:(NSString *)path {
// UIBarButtonItem *newFile = [[UIBarButtonItem alloc] initWithCustomView:newFileButton];
UIBarButtonItem *newFile = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"file_new.png"] style:UIBarButtonItemStyleBordered target:self action:@selector(newFileDidPush)];
UIBarButtonItem *newDir = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"dir_new.png"] style:UIBarButtonItemStyleBordered target:self action:@selector(newDirDidPush)];

/* TODO:FTP
UIBarButtonItem *ftpButton = [[UIBarButtonItem alloc] initWithTitle:@"FTP" style:UIBarButtonItemStyleBordered target:self action:@selector(ftpDidPush)];
NSArray *items = [NSArray arrayWithObjects:ftpButton, space, newFile, newDir, nil];
*/
NSArray *items = [NSArray arrayWithObjects:space, newFile, newDir, nil];
[self setToolbarItems:items];

// 編集ボタンの表示(selfのeditButtonを設定してやるだけでいい)
Expand Down
Loading

0 comments on commit f698833

Please sign in to comment.