From cbb150b07fcb3a96db460a22c4eb5280d8bf9e08 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Wed, 15 Sep 2010 23:12:32 +0000 Subject: =?UTF-8?q?=E2=80=A2=20further=20progress=20on=20the=20BIT=20field?= =?UTF-8?q?=20sheet=20editor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPFieldEditorController.m | 101 +++++++++++++++++++++++++++++++-------- 1 file changed, 81 insertions(+), 20 deletions(-) (limited to 'Source/SPFieldEditorController.m') diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m index fa3029e1..fe3ae80f 100644 --- a/Source/SPFieldEditorController.m +++ b/Source/SPFieldEditorController.m @@ -109,7 +109,6 @@ qlTypes = [NSDictionary dictionaryWithObject:qlTypesItems forKey:SPQuickLookTypes]; [qlTypesItems release]; - bitSheetBitButtonsArray = nil; fieldType = @""; fieldEncoding = @""; @@ -157,6 +156,16 @@ if(NO && [fieldType length] && [fieldType isEqualToString:@"BIT"]) { + sheetEditData = [(NSString*)data retain]; + + NSInteger i = 0; + NSInteger maxBit = (maxTextLength > 63) ? 63 : maxTextLength; + for(i=0; i 63) ? 63 : maxTextLength; + + NSMutableString *bitString = [NSMutableString string]; + [bitString setString:@""]; + + for(i=0; i 63) ? 63 : maxTextLength; + + switch([sender tag]) { + case 0: + for(i=0; i