From 101cae68cacd3648fe3efa4204a7bf6d1ae4c280 Mon Sep 17 00:00:00 2001 From: schriftgestalt Date: Wed, 22 Feb 2023 18:02:36 +0100 Subject: [PATCH] try to make make the group views draggable The callback doesn't work at all, yet --- Localizer/Interface/Base.lproj/Document.xib | 3 +++ Localizer/Source/Main Classes/Document.h | 2 +- Localizer/Source/Main Classes/Document.m | 10 ++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Localizer/Interface/Base.lproj/Document.xib b/Localizer/Interface/Base.lproj/Document.xib index ca8d0d8..b7bc39e 100644 --- a/Localizer/Interface/Base.lproj/Document.xib +++ b/Localizer/Interface/Base.lproj/Document.xib @@ -879,6 +879,9 @@ + + + diff --git a/Localizer/Source/Main Classes/Document.h b/Localizer/Source/Main Classes/Document.h index 32806d4..403512e 100644 --- a/Localizer/Source/Main Classes/Document.h +++ b/Localizer/Source/Main Classes/Document.h @@ -18,7 +18,7 @@ extern NSString *DocumentViewOptionFilter; @class Editor, InterfacePreviewController, DataSource; -@interface Document : BLLocalizerDocument { +@interface Document : BLLocalizerDocument { IBOutlet NSTreeController *bundlesController; IBOutlet LIContentController *content; IBOutlet Editor *editor; diff --git a/Localizer/Source/Main Classes/Document.m b/Localizer/Source/Main Classes/Document.m index ffb3061..3184782 100644 --- a/Localizer/Source/Main Classes/Document.m +++ b/Localizer/Source/Main Classes/Document.m @@ -611,4 +611,14 @@ - (BOOL)copyMissingPlaceholdersFromReference:(NSString *)referenceLanguage toLan return YES; } +#if 0 // TODO: it is not called and I don’t know why??? +- (NSRect)splitView:(NSSplitView *)splitView additionalEffectiveRectOfDividerAtIndex:(NSInteger)dividerIndex { + NSView *subView = splitView.subviews[dividerIndex]; + if (subView) { + NSLog(@"___ %@ >> %@", subView, subView.subviews); + } + return NSZeroRect; +} +#endif + @end