Revision: 15506 http://sourceforge.net/p/skim-app/code/15506 Author: hofman Date: 2025-06-20 15:50:50 +0000 (Fri, 20 Jun 2025) Log Message: ----------- No need for trivial delegate accessors override to change type
Modified Paths: -------------- trunk/SKApplication.m trunk/SKMainWindow.m trunk/SKOutlineView.m trunk/SKPDFDocument.m trunk/SKSnapshotPDFView.m trunk/SKTableView.m Modified: trunk/SKApplication.m =================================================================== --- trunk/SKApplication.m 2025-06-20 15:13:07 UTC (rev 15505) +++ trunk/SKApplication.m 2025-06-20 15:50:50 UTC (rev 15506) @@ -49,6 +49,7 @@ @implementation SKApplication @synthesize updaterController, userAttentionDisabled; +@dynamic delegate; - (NSInteger)requestUserAttention:(NSRequestUserAttentionType)requestType { return userAttentionDisabled ? 0 : [super requestUserAttention:requestType]; @@ -84,9 +85,6 @@ return NSEventTypeLeftMouseDragged == [[self nextEventMatchingMask:(NSEventMaskLeftMouseUp | NSEventMaskLeftMouseDragged) untilDate:[NSDate distantFuture] inMode:NSEventTrackingRunLoopMode dequeue:NO] type]; } -- (id <SKApplicationDelegate>)delegate { return (id <SKApplicationDelegate>)[super delegate]; } -- (void)setDelegate:(id <SKApplicationDelegate>)newDelegate { [super setDelegate:newDelegate]; } - #pragma mark Windows menu - (void)reorganizeWindowsItem:(NSWindow *)aWindow { Modified: trunk/SKMainWindow.m =================================================================== --- trunk/SKMainWindow.m 2025-06-20 15:13:07 UTC (rev 15505) +++ trunk/SKMainWindow.m 2025-06-20 15:50:50 UTC (rev 15506) @@ -111,14 +111,6 @@ disableConstrainedFrame = NO; } -- (id<SKMainWindowDelegate>)delegate { - return (id<SKMainWindowDelegate>)[super delegate]; -} - -- (void)setDelegate:(id<SKMainWindowDelegate>)newDelegate { - [super setDelegate:newDelegate]; -} - - (NSTitlebarAccessoryViewController *)safeTabBarViewController { if ([self respondsToSelector:@selector(_tabBarAccessoryViewController)]) return [self _tabBarAccessoryViewController]; Modified: trunk/SKOutlineView.m =================================================================== --- trunk/SKOutlineView.m 2025-06-20 15:13:07 UTC (rev 15505) +++ trunk/SKOutlineView.m 2025-06-20 15:50:50 UTC (rev 15506) @@ -390,10 +390,6 @@ [[self delegate] outlineView:self typeSelectHelperUpdateSearchString:searchString]; } -- (id <SKOutlineViewDelegate>)delegate { - return (id <SKOutlineViewDelegate>)[super delegate]; -} - - (void)setDelegate:(id <SKOutlineViewDelegate>)newDelegate { [self removeTrackingAreasIfNeeded]; [super setDelegate:newDelegate]; Modified: trunk/SKPDFDocument.m =================================================================== --- trunk/SKPDFDocument.m 2025-06-20 15:13:07 UTC (rev 15505) +++ trunk/SKPDFDocument.m 2025-06-20 15:50:50 UTC (rev 15506) @@ -107,12 +107,4 @@ - (BOOL)realAllowsCommenting { return [super allowsCommenting]; } -- (id <SKPDFDocumentDelegate>)delegate { - return (id <SKPDFDocumentDelegate>)[super delegate]; -} - -- (void)setDelegate:(id <SKPDFDocumentDelegate>)newDelegate { - [super setDelegate:newDelegate]; -} - @end Modified: trunk/SKSnapshotPDFView.m =================================================================== --- trunk/SKSnapshotPDFView.m 2025-06-20 15:13:07 UTC (rev 15505) +++ trunk/SKSnapshotPDFView.m 2025-06-20 15:50:50 UTC (rev 15506) @@ -243,14 +243,6 @@ } } -- (id <SKSnapshotPDFViewDelegate>)delegate { - return (id <SKSnapshotPDFViewDelegate>)[super delegate]; -} - -- (void)setDelegate:(id <SKSnapshotPDFViewDelegate>)newDelegate { - [super setDelegate:newDelegate]; -} - - (void)handlePDFViewFrameChangedNotification:(NSNotification *)notification { if ([self autoFits]) { NSRect clipRect = [self visibleContentRect]; Modified: trunk/SKTableView.m =================================================================== --- trunk/SKTableView.m 2025-06-20 15:13:07 UTC (rev 15505) +++ trunk/SKTableView.m 2025-06-20 15:50:50 UTC (rev 15506) @@ -415,10 +415,6 @@ [[self delegate] tableView:self typeSelectHelperUpdateSearchString:searchString]; } -- (id <SKTableViewDelegate>)delegate { - return (id <SKTableViewDelegate>)[super delegate]; -} - - (void)setDelegate:(id <SKTableViewDelegate>)newDelegate { [self removeTrackingAreasIfNeeded]; [super setDelegate:newDelegate]; 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