Revision: 15649
          http://sourceforge.net/p/skim-app/code/15649
Author:   hofman
Date:     2025-07-12 14:36:03 +0000 (Sat, 12 Jul 2025)
Log Message:
-----------
add text viewe in editor in init

Modified Paths:
--------------
    trunk/SKTextNoteEditor.m

Modified: trunk/SKTextNoteEditor.m
===================================================================
--- trunk/SKTextNoteEditor.m    2025-07-12 08:55:14 UTC (rev 15648)
+++ trunk/SKTextNoteEditor.m    2025-07-12 14:36:03 UTC (rev 15649)
@@ -50,6 +50,10 @@
 
 #pragma mark -
 
+@interface SKTextNoteEditor ()
+- (void)setUpTextView;
+@end
+
 @implementation SKTextNoteEditor
 
 @dynamic currentString;
@@ -69,6 +73,8 @@
         
         if (@available(macOS 10.14, *))
             [self setAppearance:[NSAppearance 
appearanceNamed:NSAppearanceNameAqua]];
+        
+        [self setUpTextView];
     }
     return self;
 }
@@ -107,9 +113,6 @@
 }
 
 - (void)setUpTextView {
-    if (textView)
-        return;
-    
     textView  = [[SKTextNoteTextView alloc] initWithFrame:[self bounds]];
     [textView setRichText:NO];
     [textView setDrawsBackground:NO];
@@ -178,7 +181,6 @@
 }
 
 - (void)startEditingWithEvent:(NSEvent *)event {
-    [self setUpTextView];
     [[self window] recalculateKeyViewLoop];
     [textView scrollPoint:NSZeroPoint];
     [annotation setShouldDisplay:NO];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to