aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFieldEditorController.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-04-02 23:34:45 +0200
committerMax <post@wickenrode.com>2015-04-02 23:34:45 +0200
commit9aa296a3e93b0b98a1018ba4d7aa8920d85b2a81 (patch)
tree87d0b7078001e214562bd15597fc36186b545590 /Source/SPFieldEditorController.m
parentbdf196ac60472fa7eccbd094ee1b5a505f550f4d (diff)
downloadsequelpro-9aa296a3e93b0b98a1018ba4d7aa8920d85b2a81.tar.gz
sequelpro-9aa296a3e93b0b98a1018ba4d7aa8920d85b2a81.tar.bz2
sequelpro-9aa296a3e93b0b98a1018ba4d7aa8920d85b2a81.zip
Converted some setters to equivalent @propertys
Diffstat (limited to 'Source/SPFieldEditorController.m')
-rw-r--r--Source/SPFieldEditorController.m44
1 files changed, 4 insertions, 40 deletions
diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m
index 52242406..c1908a19 100644
--- a/Source/SPFieldEditorController.m
+++ b/Source/SPFieldEditorController.m
@@ -49,6 +49,10 @@
@implementation SPFieldEditorController
@synthesize editedFieldInfo;
+@synthesize textMaxLength = maxTextLength;
+@synthesize fieldType;
+@synthesize fieldEncoding;
+@synthesize allowNULL = _allowNULL;
/**
* Initialise an instance of SPFieldEditorController using the XIB “FieldEditorSheet.xib”. Init the available Quciklook format by reading
@@ -483,46 +487,6 @@
}
/**
- * Set the maximum text length of the underlying table field for input validation.
- *
- * @param length The maximum text length
- */
-- (void)setTextMaxLength:(NSUInteger)length
-{
- maxTextLength = length;
-}
-
-/**
- * Set the field type of the underlying table field for input validation.
- *
- * @param aType The field type which will be used for dispatching which sheet will be shown. If type == BIT the bitSheet will be used otherwise the editSheet.
- */
-- (void)setFieldType:(NSString*)aType
-{
- fieldType = aType;
-}
-
-/**
- * Set the field encoding of the underlying table field for displaying it to the user.
- *
- * @param aEncoding encoding
- */
-- (void)setFieldEncoding:(NSString*)aEncoding
-{
- fieldEncoding = aEncoding;
-}
-
-/**
- * Set if underlying table field allows NULL for several validations.
- *
- * @param allowNULL If allowNULL is YES NULL value is allowed for the underlying table field
- */
-- (void)setAllowNULL:(BOOL)allowNULL
-{
- _allowNULL = allowNULL;
-}
-
-/**
* Segement controller for text/image/hex buttons in editSheet
*/
- (IBAction)segmentControllerChanged:(id)sender