Skip to content

Commit

Permalink
try to make make the group views draggable
Browse files Browse the repository at this point in the history
The callback doesn't work at all, yet
  • Loading branch information
schriftgestalt committed Feb 22, 2023
1 parent e59606b commit 101cae6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Localizer/Interface/Base.lproj/Document.xib
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,9 @@
<real value="252"/>
<real value="252"/>
</holdingPriorities>
<connections>
<outlet property="delegate" destination="-2" id="7gy-cm-Q7G"/>
</connections>
<point key="canvasLocation" x="403" y="678"/>
</splitView>
<menu id="12Y-PC-iIb">
Expand Down
2 changes: 1 addition & 1 deletion Localizer/Source/Main Classes/Document.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ extern NSString *DocumentViewOptionFilter;

@class Editor, InterfacePreviewController, DataSource;

@interface Document : BLLocalizerDocument {
@interface Document : BLLocalizerDocument <NSSplitViewDelegate> {
IBOutlet NSTreeController *bundlesController;
IBOutlet LIContentController *content;
IBOutlet Editor *editor;
Expand Down
10 changes: 10 additions & 0 deletions Localizer/Source/Main Classes/Document.m
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 101cae6

Please sign in to comment.