From 3e18bc68b2ed5769722b82333bb8f84f22462202 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Wed, 19 Jan 2011 09:55:45 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fixed=20bug=20for=20Bundle=20input=20data?= =?UTF-8?q?=20selected=20text=20or=20entire=20content?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPBundleEditorController.h | 1 - Source/SPTextViewAdditions.m | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Source') diff --git a/Source/SPBundleEditorController.h b/Source/SPBundleEditorController.h index 81390824..d8c2d5df 100644 --- a/Source/SPBundleEditorController.h +++ b/Source/SPBundleEditorController.h @@ -61,7 +61,6 @@ IBOutlet NSMenuItem *revealInFinderMenuItem; IBOutlet SRRecorderControl *keyEquivalentField; IBOutlet NSButton *disabledCheckbox; - IBOutlet NSView *bundleDataView; IBOutlet NSScrollView *commandScrollView; IBOutlet NSScrollView *descriptionScrollView; IBOutlet BWAnchoredButtonBar *splitViewButtonBar; diff --git a/Source/SPTextViewAdditions.m b/Source/SPTextViewAdditions.m index 21811513..47263311 100644 --- a/Source/SPTextViewAdditions.m +++ b/Source/SPTextViewAdditions.m @@ -562,7 +562,7 @@ replaceRange = currentLineRange; else if([inputFallBackAction isEqualToString:SPBundleInputSourceCurrentQuery]) replaceRange = currentQueryRange; - else if([inputAction isEqualToString:SPBundleInputSourceEntireContent]) + else if([inputFallBackAction isEqualToString:SPBundleInputSourceEntireContent]) replaceRange = NSMakeRange(0,[[self string] length]); } else { replaceRange = currentSelectionRange; @@ -626,6 +626,7 @@ NSError *inputFileError = nil; NSString *input = [NSString stringWithString:[[self string] substringWithRange:replaceRange]]; + [input writeToFile:bundleInputFilePath atomically:YES encoding:NSUTF8StringEncoding -- cgit v1.2.3