- Status line shows 'title' text on :browse - Status line shows dimensions when user drags/zooms the window

git-svn-id: http://macvim.googlecode.com/svn/trunk@30 96c4425d-ca35-0410-94e5-3396d5c13a8f
This commit is contained in:
Bjorn Winckler
2007-07-29 14:55:37 +00:00
parent a7d20e4dee
commit 26a06f581f
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -184,6 +184,8 @@ static NSMenuItem *findMenuItemWithTagInMenu(NSMenu *root, int tag)
title:(in bycopy NSString *)title
saving:(int)saving
{
[windowController setStatusText:title];
if (saving) {
[[NSSavePanel savePanel] beginSheetForDirectory:dir file:nil
modalForWindow:[windowController window]
@@ -784,6 +786,8 @@ static NSMenuItem *findMenuItemWithTagInMenu(NSMenu *root, int tag)
- (void)panelDidEnd:(NSSavePanel *)panel code:(int)code context:(void *)context
{
#if MM_USE_DO
[windowController setStatusText:@""];
NSString *string = (code == NSOKButton) ? [panel filename] : nil;
[backendProxy setBrowseForFileString:string];
#else
+4
View File
@@ -891,6 +891,10 @@ NSMutableArray *buildMenuAddress(NSMenu *menu)
// Text storage dimensions changed, notify the VimTask.
int dim[2];
[textStorage getMaxRows:&dim[0] columns:&dim[1]];
NSString *sdim = [NSString stringWithFormat:@"%dx%d", dim[1], dim[0]];
[self flashStatusText:sdim];
//NSLog(@"Notify Vim that text storage dimensions changed to %dx%d",
// dim[0], dim[1]);
NSData *data = [NSData dataWithBytes:dim length:2*sizeof(int)];