Skip to content

Change method for detecting network changes - #2201

Merged
barijaona merged 1 commit into
ViennaRSS:masterfrom
barijaona:issue-1817
Nov 15, 2026
Merged

barijaona merged 1 commit into
ViennaRSS:masterfrom
barijaona:issue-1817

Conversation

@barijaona

Copy link
Copy Markdown
Member

NSHost class is being deprecated and its use makes macOS ask for authorization to access devices on user's local network.

Issue #1817

@barijaona barijaona linked an issue Nov 14, 2026 that may be closed by this pull request
#import "XMLFeed.h"
#import "XMLFeedParser.h"
#import "HelperFunctions.h"
#import <notify_keys.h>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should use @import notify; to import the module instead.

onNotifyCallback, // callback
CFSTR(kNotifySCNetworkChange), // event name
NULL, // object
CFNotificationSuspensionBehaviorDeliverImmediately);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
CFNotificationSuspensionBehaviorDeliverImmediately);
0);

The documentation in CFNotificationCenter.h states that the suspensionBehavior argument is ignored for CFNotificationCenterGetDarwinNotifyCenter() and that NULL/0 should be passed for ignored arguments.

NSHost class is being deprecated and its use makes macOS ask for
authorization to access devices on user's local network.
Instead, detect network changes through Darwin notification events.

Issue ViennaRSS#1817
@barijaona
barijaona merged commit a87de41 into ViennaRSS:master Nov 15, 2026
2 checks passed
@barijaona
barijaona deleted the issue-1817 branch November 15, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vienna requests access to local network devices in macOS 15

2 participants