From 4ae24d7753c5699eea62da16d5b1be251c6aeb4e Mon Sep 17 00:00:00 2001 From: Bibiko Date: Fri, 17 Jul 2009 16:46:19 +0000 Subject: =?UTF-8?q?=E2=80=A2=20changed=20in=20Custom=20Query:=20-=20make?= =?UTF-8?q?=20usage=20of=20SPFieldEditor=20for=20displaying=20result=20dat?= =?UTF-8?q?a=20field=20(incl.=20blob=20data)=20-=20set=20to=20non-editable?= =?UTF-8?q?=20yet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPFieldEditorController.m | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'Source/SPFieldEditorController.m') diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m index af5addf9..085a4933 100644 --- a/Source/SPFieldEditorController.m +++ b/Source/SPFieldEditorController.m @@ -72,16 +72,14 @@ if(!isEditable) { [editSheetOkButton setTitle:NSLocalizedString(@"Close", @"close button title")]; + [editSheetOkButton setKeyEquivalent:@"\033"]; // ESC key [editSheetCancelButton setHidden:YES]; [editSheetOpenButton setEnabled:NO]; - } else { - [editSheetOkButton setTitle:NSLocalizedString(@"OK", @"ok button title")]; - [editSheetCancelButton setHidden:NO]; - [editSheetOpenButton setEnabled:YES]; } editSheetWillBeInitialized = YES; + encoding = anEncoding; isBlob = isFieldBlob; @@ -100,10 +98,13 @@ [editSheetSegmentControl setHidden:(!isBlob)]; // Set window's min size since no segment and quicklook buttons are hidden - if(isBlob) + if(isBlob) { + [editSheet setFrameAutosaveName:@"SPFieldEditorBlobSheet"]; [editSheet setMinSize:NSMakeSize(560, 200)]; - else + } else { + [editSheet setFrameAutosaveName:@"SPFieldEditorTextSheet"]; [editSheet setMinSize:NSMakeSize(340, 150)]; + } [editTextView setEditable:isEditable]; [editImage setEditable:isEditable]; -- cgit v1.2.3