aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFieldEditorController.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-08-08 11:00:00 +0000
committerBibiko <bibiko@eva.mpg.de>2009-08-08 11:00:00 +0000
commitf083576763c6c97b03943e335a6948411e7214ef (patch)
treeb27033ce44154b9d3cee1d278aab7840bf545706 /Source/SPFieldEditorController.m
parent0471ae82424ea960038699509c1875650ccc3915 (diff)
downloadsequelpro-f083576763c6c97b03943e335a6948411e7214ef.tar.gz
sequelpro-f083576763c6c97b03943e335a6948411e7214ef.tar.bz2
sequelpro-f083576763c6c97b03943e335a6948411e7214ef.zip
• added field name to Field Editor Sheet
- initial support (not yet finished) Note: maybe add information about field type, max length as attributed string
Diffstat (limited to 'Source/SPFieldEditorController.m')
-rw-r--r--Source/SPFieldEditorController.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m
index 32b817eb..7b05c5fa 100644
--- a/Source/SPFieldEditorController.m
+++ b/Source/SPFieldEditorController.m
@@ -51,7 +51,7 @@
[super dealloc];
}
-- (id)editWithObject:(id)data usingEncoding:(NSStringEncoding)anEncoding
+- (id)editWithObject:(id)data fieldName:(NSString*)fieldName usingEncoding:(NSStringEncoding)anEncoding
isObjectBlob:(BOOL)isFieldBlob isEditable:(BOOL)isEditable withWindow:(NSWindow *)tableWindow
{
prefs = [NSUserDefaults standardUserDefaults];
@@ -63,6 +63,7 @@
}
[hexTextView setFont:[NSFont fontWithName:@"Monaco" size:[NSFont smallSystemFontSize]]];
+ [editSheetFieldName setStringValue:[NSString stringWithFormat:@"%@: %@", NSLocalizedString(@"Field", @"Field"), fieldName]];
// hide all views in editSheet
[hexTextView setHidden:YES];