aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPEditSheetTextView.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-11-20 10:36:54 +0000
committerBibiko <bibiko@eva.mpg.de>2010-11-20 10:36:54 +0000
commit954b41eb8fd513513abca607f710d2688202fe1e (patch)
tree52daae8df12165f5d90b6166a526486b9c10b5ac /Source/SPEditSheetTextView.m
parent7ee497de7b4b05fe338166221b0fd42962975214 (diff)
downloadsequelpro-954b41eb8fd513513abca607f710d2688202fe1e.tar.gz
sequelpro-954b41eb8fd513513abca607f710d2688202fe1e.tar.bz2
sequelpro-954b41eb8fd513513abca607f710d2688202fe1e.zip
• added SPBundleCommandTextView and use it instead of SPEditSheetTextVIew since it works in a sheet only and due to future extensions
• fixed init in SPEditSheetTextView • Bundle Editor: minor bug fixing
Diffstat (limited to 'Source/SPEditSheetTextView.m')
-rw-r--r--Source/SPEditSheetTextView.m13
1 files changed, 10 insertions, 3 deletions
diff --git a/Source/SPEditSheetTextView.m b/Source/SPEditSheetTextView.m
index bd0c5a88..a333a850 100644
--- a/Source/SPEditSheetTextView.m
+++ b/Source/SPEditSheetTextView.m
@@ -1,5 +1,5 @@
//
-// $Id: SPTextViewAdditions.m 866 2009-06-15 16:05:54Z bibiko $
+// $Id$
//
// SPEditSheetTextView.m
// sequel-pro
@@ -28,6 +28,15 @@
@implementation SPEditSheetTextView
+- (id)init
+{
+ if(self = [super init])
+ {
+ ;
+ }
+ return self;
+}
+
- (IBAction)undo:(id)sender
{
textWasChanged = NO;
@@ -340,8 +349,6 @@
{
if([[[[self delegate] class] description] isEqualToString:@"SPFieldEditorController"])
[[NSUserDefaults standardUserDefaults] setObject:[NSArchiver archivedDataWithRootObject:[self font]] forKey:@"FieldEditorSheetFont"];
- else if([[[[self delegate] class] description] isEqualToString:@"SPBundleEditorController"])
- [[NSUserDefaults standardUserDefaults] setObject:[NSArchiver archivedDataWithRootObject:[self font]] forKey:@"BundleEditorFont"];
}
// Action receiver for a font change in the font panel