diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-07-17 16:46:19 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-07-17 16:46:19 +0000 |
commit | 4ae24d7753c5699eea62da16d5b1be251c6aeb4e (patch) | |
tree | a3a6ac6515636782aa1c871ef731402481fe4330 /Source/SPFieldEditorController.m | |
parent | dbefc2d0e374b9279289b313adf814187b26882c (diff) | |
download | sequelpro-4ae24d7753c5699eea62da16d5b1be251c6aeb4e.tar.gz sequelpro-4ae24d7753c5699eea62da16d5b1be251c6aeb4e.tar.bz2 sequelpro-4ae24d7753c5699eea62da16d5b1be251c6aeb4e.zip |
• changed in Custom Query:
- make usage of SPFieldEditor for displaying result data field (incl. blob data)
- set to non-editable yet
Diffstat (limited to 'Source/SPFieldEditorController.m')
-rw-r--r-- | Source/SPFieldEditorController.m | 13 |
1 files changed, 7 insertions, 6 deletions
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]; |