News for hackers. Stuff that matters.
Re:An Alerting Vista of macOS Sonoma by saagarjha on Sunday July 09, 2023 @06:13PM (#36659496)
These alerts are useless for developers. They contain no detail as to what should be done and are non-actionable.
Re:An Alerting Vista of macOS Sonoma by Cycl0p on Sunday July 09, 2023 @06:40PM (#36659758)
Well, if you build your software the Apple way(TM) and use Xcode, just opening the project will show you all the deprecation warning. A C++ Xcode project I have at work has a lot of them, mainly for using old Frameworks like CoreServices, which do not have any modern C/C++ equivalent (they were replaced by Obj-C/Swift APIs) and which, while very old fashion/unsafe in their style, are most of the time way more worth to call for very short task like getting a path, rather then having to whip out a .mm and write some horrible Objective-C++.

However, if you’re not using Swift/Obj-C and have a different/custom build system, you’re probably toasted. Although, if you’re using CMake, you might have some luck in getting these info by generating an XCode project.

Re:An Alerting Vista of macOS Sonoma by Someone on Monday July 10, 2023 @01:59AM (#36662637)
I would expect Xcode doesn’t have its own parser, but gets its warnings from the compiler. It, in turn, would get them from the header files.

If so, the problem wouldn’t be “not using Swift/Objective-C” or “have a different/custom custom build system”, but having a binary in your build that calls a deprecated API that the build does not build from source.

That’s the case if you use a third party library you don’t have source code for, or if you use an in-house ‘library’ project (Xcode would warn you if you compiled that, but possibly not when you use it in another project, so you wouldn’t get a direct clue “rebuild that library to see the issues”).

Re:An Alerting Vista of macOS Sonoma by isodev on Sunday July 09, 2023 @06:17PM (#36659538)
An alert is hardly the place to list detailed code warnings. I think the prompts are enough to have one open their app in Xcode and review the specific depreciation warnings.
Re:An Alerting Vista of macOS Sonoma by saagarjha on Sunday July 09, 2023 @06:27PM (#36659618)
They’re not. Pretty much every developer I’ve talked to has no idea what this warning means or what they should be doing in response to this. All of them are smart people who are longtime Mac developers. There are a bunch of ways to improve this: you could tell people to look in Console for logs, or name the deprecated API being used. What Apple did instead is decided to shame apps by name but not tell them what they did wrong, and do so in a way that is quite broken because the warnings don’t even line up with deprecated API usage.
Re:An Alerting Vista of macOS Sonoma by Cycl0p on Sunday July 09, 2023 @06:46PM (#36659808)
Nonsense, the way Xcode works by making you link Apple Frameworks to your project like packages lets you see “by design” (which I personally despite, but you got to give them that) precisely which Frameworks are in your project and which ones are or are not deprecated. Everything will end up in the project global warning tab.
Re:An Alerting Vista of macOS Sonoma by lapcat on Sunday July 09, 2023 @06:59PM (#36659936)
You have no clue who you're replying to. I can guarantee that saagarjha knows more than you about Apple development.
Re:An Alerting Vista of macOS Sonoma by joiqj on Sunday July 09, 2023 @07:06PM (#36659993)
That is nothing but an appeal to authority.
Re:An Alerting Vista of macOS Sonoma by lapcat on Sunday July 09, 2023 @07:08PM (#36660016)
That is because I am an authority.
Re:An Alerting Vista of macOS Sonoma by arcticbull on Sunday July 09, 2023 @08:40PM (#36660629)
So am I but it's still an appeal to authority, and not a valid argument.
Re:An Alerting Vista of macOS Sonoma by lapcat on Sunday July 09, 2023 @08:53PM (#36660720)
It wasn't intended to be an argument. It's simply a fact.
Re:An Alerting Vista of macOS Sonoma by flangola7 on Monday July 10, 2023 @05:15AM (#36663845)
No one is required to debate you. You think it's an appeal to authority... so what?
Re:An Alerting Vista of macOS Sonoma by dang on Monday July 10, 2023 @12:10PM (#36668399)
Could you please stop posting unsubstantive comments and flamebait? You've unfortunately been doing it a lot lately. It's not what this site is for, and destroys what it is for, so we eventually have to ban such accounts.

If you wouldn't mind reviewing https://news.ycombinator.com/newsguidelines.html and taking the intended spirit of the site more to heart, we'd be grateful.

Re:An Alerting Vista of macOS Sonoma by coldtea on Sunday July 09, 2023 @08:47PM (#36660674)
Authorities can also miss the obvious like the rest of us. So still needs a proper argument (even if it's just "No, it's not shown in XCode, go check and you'll agree").
Re:An Alerting Vista of macOS Sonoma by lapcat on Sunday July 09, 2023 @09:24PM (#36660932)
I wasn't trying to make an argument. I'm just really tired of clueless mansplaining internet randos talking down to experts, as if they'd never heard of Xcode build warnings, which is absurd and insulting.

It took me some time to track down the reference, but here's your argument:

> No, it’s not; the alert is the result of calling legacy CoreGraphics APIs rather than ScreenCaptureKit. Of course the fact that I had to learn this by reverse engineering replayd and locating “coreGraphicsCaptureAPINotificiationEnabled” (sic) is part of the problem. https://twitter.com/_saagarjha/status/1672855750862073856

(Unfortunately, one can no longer see the entire thread if logged out from Twitter, due to recently imposed restrictions.)

Re:An Alerting Vista of macOS Sonoma by deaddodo on Monday July 10, 2023 @12:35AM (#36662146)
> I'm just really tired of clueless mansplaining internet randos talking down to experts

The vast majority of people on here don't have a figment of an idea of who you are, let alone your gender. So your base qualification for your complaint ("being mansplained to") is instantly nullified.

As far as your qualifications go, you're as equally anonymous and qualified/unqualified as the other poster is. So get your panties/knickers/boxers/briefs/whatever out of a twist.

Re:An Alerting Vista of macOS Sonoma by newaccount74 on Monday July 10, 2023 @04:01AM (#36663335)
If you don't recognize lapcat, you haven't been reading a lot of macOS articles on HN.

Also, "mansplaining" probably just meant "giving unwanted advise about a topic they only have superficial knowledge of".

Re:An Alerting Vista of macOS Sonoma by deaddodo on Monday July 10, 2023 @04:51AM (#36663661)
> If you don't recognize lapcat, you haven't been reading a lot of macOS articles on HN.

I read plenty of macOS articles here. I'm sure I've run across them. They're neither memorable enough nor important enough for me to pick them out from one user or another. And for them to assume that importance would make them far more arrogant to me (and many others) than the "mansplainer" (no matter if they're in the wrong, which I happened to agree that they were).

> Also, "mansplaining" probably just meant "giving unwanted advise about a topic they only have superficial knowledge of".

I could pick up the context of their intention. It's still extremely odd to use a politically and emotionally overloaded word with a specific meaning that clearly doesn't apply here. OP could be a woman themselves, for all we know. The explainer wasn't talking down to lapcat out of an assumed lack of knowledge based on their gender; they were just talking with a general lack of knowledge on the subject, which is pretty common on the internet.

Re:An Alerting Vista of macOS Sonoma by coldtea on Monday July 10, 2023 @06:53AM (#36664538)
>If you don't recognize lapcat, you haven't been reading a lot of macOS articles on HN

I, for one, barely recognize 5-10 names. I focus on the content, and don't keep the names in my mind after reading something or even after having a chat, unless they make some unique impression, or have a consistent theme and style to be recognizable.

Re:An Alerting Vista of macOS Sonoma by lapcat on Monday July 10, 2023 @05:48AM (#36664052)
> The vast majority of people on here don't have a figment of an idea of who you are, let alone your gender. If anything, they probably assumed you were a man and were just being armchair arrogant/pretentious. So your base qualification for your complaint ("being mansplained to") is instantly nullified.

It's not about me. I was upset about the careless disrespect in these comments to saagarjha and to the article author Craig Hockenberry. Cycl0p created a HN account yesterday for the sole purpose of replying, incorrectly and dismissively, to saagarjha: https://news.ycombinator.com/user?id=Cycl0p

I'm not a big fan of the term "mansplaining" either, but it's the most recognizable one for something like this phenomenon. I once coined the gender-neutral term "downspouting", but nobody knows it. If there's a better word, I'd be happy to use it.

My own qualifications are largely irrelevant here. All I said was, "I can guarantee that saagarjha knows more than you about Apple development", a guarantee that I think has now has been demonstrated by subsequent comments.

Re:An Alerting Vista of macOS Sonoma by tough on Monday July 10, 2023 @07:07AM (#36664677)
Thanks for bringig it up.

Appeal to authority works when the authority is a real authority in the subject matter I think

Re:An Alerting Vista of macOS Sonoma by deaddodo on Monday July 10, 2023 @06:52PM (#36674104)
> I'm not a big fan of the term "mansplaining" either, but it's the most recognizable one for something like this phenomenon. I once coined the gender-neutral term "downspouting", but nobody knows it. If there's a better word, I'd be happy to use it.

"Arrogance".

Re:An Alerting Vista of macOS Sonoma by boffinAudio on Monday July 10, 2023 @05:07AM (#36663796)
> I'm just really tired of clueless mansplaining internet randos talking down to experts, as if they'd never heard of Xcode build warnings, which is absurd and insulting.

This is an unreasonable position to take on a forum where there are absolutely zero clues about the competence of the person in the thread. You may know who saagarjha (and lapcat) are, but there is absolutely nothing in any of your messages, or theirs, to indicate that they are professional Apple devs with decades of experience.

If HN had flair, we might have a chance. But as it stands we have to contend with the fact that each and every HN contributor has to be treated as incompetent developers until they demonstrate otherwise...

And it is incompetent developers - at Apple - that gave us this nonsense notification system in the first place.

Re:An Alerting Vista of macOS Sonoma by lapcat on Monday July 10, 2023 @06:03AM (#36664145)
> This is an unreasonable position to take on a forum where there are absolutely zero clues about the competence of the person in the thread.

> each and every HN contributor has to be treated as incompetent developers until they demonstrate otherwise

It's absolutely not unreasonable. On the contrary, the HN guidelines state "Please respond to the strongest plausible interpretation of what someone says, not a weaker one that's easier to criticize." https://news.ycombinator.com/newsguidelines.html

(I realize that I've violated the guidelines here in my response to other guideline violations, which I'm not supposed to do, and I'll take my "punishment", whatever that happens to be.)

> And it is incompetent developers - at Apple - that gave us this nonsense notification system in the first place.

I'm inclined to think that it was more of a bureaucratic mess. There are tight timelines, lack of coordination among different teams, underspecified or conflicting requirements, etc.

Re:An Alerting Vista of macOS Sonoma by boffinAudio on Monday July 10, 2023 @06:29AM (#36664331)
>It's absolutely not unreasonable.

We disagree, but that's our individual prerogative. I don't contend with the idea that one must kowtow to authorities on the basis of a single message thread - you only know of the competencies of saagarjha by stint of having interacted with them for years - it is entirely unreasonable to require others to have that same understanding, when literally nothing in this forum promotes any means by which to gain that understanding other than to follow individuals for years.

If ssagarjha had prefaced their statements with "I'm an XXX dev with YYY years of experience on this subject, and my conclusion is .." then you'd have a point. But there was no such introduction - and thus it is absolutely unreasonable to expect other contributors to the thread to understand the prowess of the person whose opinions they are challenging.

>"punishment"

.. seems to be limited to having to deal with other, random strangers on the Internet, and whose competence you are yet to divulge from limited interactions...

> bureaucratic mess

All developer incompetence is bureaucratic mess, there is no other form of it. We are bureaucrats, not artists. Not even Apple can escape this fact, as we can see time and again with their low-effort, poor quality releases lately ..

Re:An Alerting Vista of macOS Sonoma by lapcat on Monday July 10, 2023 @06:39AM (#36664415)
> We disagree, but that's our individual prerogative.

It's not our individual prerogative. I again point to the HN guidelines: https://news.ycombinator.com/newsguidelines.html

> >"punishment"

> .. seems to be limited to having to deal with other, random strangers on the Internet, and whose competence you are yet to divulge from limited interactions...

HN does have moderators.

> Not even Apple can escape this fact, as we can see time and again with their low-effort, poor quality releases lately

I blame upper management for that, i.e., Federighi and Cook.

Re:An Alerting Vista of macOS Sonoma by boffinAudio on Monday July 10, 2023 @06:58AM (#36664591)
>It's not our individual prerogative

I mean that it is entirely our prerogative to disagree on whether one should recognize an expert, immediately upon engaging with them. There's nothing in the HN guidelines that indicate otherwise - unless your point is that one should have respect for the potential experience of everyone one encounters on HN, which is fair.

But I still contend that your position that we should all know saagarjhas' competence is entirely unreasonable. There are tens of thousands of such individuals here on HN, how are we supposed to know we're talking to the very founders of the technology we're discussing? Its unreasonable, but its your prerogative to make the statement, "don't argue with saagarjha, he's an expert", and its just as viable to see this is a "call to authority fallacy" designed to shut down honest, viable - and valuable - dialog that results from the challenge to this so-called authority.

In other words I don't think you're applying the HN guideliness effectively. Please let people challenge experts - its important to our community, after all.

>Federighi and Cook.

Never accept technical management from someone who can't do your job. This is Peter Principle, 101. Someone at Apple is dropping a lot of balls lately, and it shows in the very poor quality of their releases over the last few years. The notification system is entirely dysfunctional, on both iOS and MacOS - I would wager the bureaucrats don't actually use these tools.

Re:An Alerting Vista of macOS Sonoma by lapcat on Monday July 10, 2023 @07:37AM (#36664948)
> unless your point is that one should have respect for the potential experience of everyone one encounters on HN, which is fair.

Yes, that is my point.

And I think it should also apply especially to the article authors, who are all too often disrespected and dismissed.

> Please let people challenge experts - its important to our community, after all.

Of course. But challenge them intelligently not dismissively.

> Never accept technical management from someone who can't do your job.

Well, I'm self-employed, so. ;-)

On the other hand, I made more money when I worked for someone else, so that's a big tradeoff.

Re:An Alerting Vista of macOS Sonoma by boffinAudio on Monday July 10, 2023 @08:04AM (#36665146)
>And I think it should also apply especially to the article authors, who are all too often disrespected and dismissed.

We agree, thanks for the kind conversation.

>Well, I'm self-employed, so. ;-)

Well whatever you do, don't give yourself a promotion! :P

Re:An Alerting Vista of macOS Sonoma by coldtea on Monday July 10, 2023 @07:06AM (#36664668)
Meanwhile, why and how would they know who "saagarjha"is and whether they're an expert? Are they supposed to be famous, I mean Carmack or Lattner famous no "they are known in some circles".

Even if they visit their blog, they can just see: "Hi, I'm Saagar Jha. I'm a software engineer from Cupertino, California, but I spend an inordinate amount of time in the southern part of the state" and a list of smaller projects and experiments.

Re:An Alerting Vista of macOS Sonoma by coldtea on Monday July 10, 2023 @06:54AM (#36664551)
>It's absolutely not unreasonable. On the contrary, the HN guidelines state "Please respond to the strongest plausible interpretation of what someone says, not a weaker one that's easier to criticize."

How does that fit with accusing the other person of "mainsplaining", of purposefully disrespecting an "authority" (sic), assuming they would have known who the other person is and it's only because of their audacity they responded as if they might have possibly missed something basic, and so on?

Re:An Alerting Vista of macOS Sonoma by lapcat on Monday July 10, 2023 @07:31AM (#36664905)
> How does that fit with accusing the other person of "mansplaining"

It doesn't, as I said in the very comment you're replying to: "I realize that I've violated the guidelines here in my response to other guideline violations".

> assuming they would have known who the other person

That wasn't my assumption. Although one ought to know who the submitted article author is, as that information is easy to obtain directly from the article.

> they responded as if they might have possibly missed something basic

That's the problematic part. We're not required to know who the HN commenters are, but we are required by the HN guidelines to treat them with respect and respond to the most charitable interpretation of their words.

My complaint isn't "You don't know saagarjha". Rather, my complaint is "You're assuming that saagarjha is an incompetent idiot, but saagarjha just so happens to be extremely competent and knowledgeable."

Re:An Alerting Vista of macOS Sonoma by coldtea on Monday July 10, 2023 @06:43AM (#36664443)
>I wasn't trying to make an argument. I'm just really tired of clueless mansplaining internet randos talking down to experts, as if they'd never heard of Xcode build warnings, which is absurd and insulting.

There are people who don't know who an account handle they reply to is, or their expert status and history, in order to show the appropriate reverence. Some wont even recognize the initials "pg" they might be replying to.

There's this saying "A billion chinese don't know who you are and don't give a shit". The same if often true of the mere tens of thousands of HN users.

Re:An Alerting Vista of macOS Sonoma by newaccount74 on Monday July 10, 2023 @07:19AM (#36664785)
I think the solution is to assume that everyone is an expert, and try to understand why they said something, and ask for clarification, instead of telling them they are wrong.
Re:An Alerting Vista of macOS Sonoma by olliej on Sunday July 09, 2023 @09:13PM (#36660850)
I mean yes, but that's because Saagar _is_ an authority. He's worked at at least one company that requires far greater amounts of knowledge and understand of Xcode, macOS, iOS, etc than the overwhelming majority of Mac+iOS devs.[1]

This is a case where an "appeal to authority" is reasonable - CyclOp posted an opinion, that claimed Saagar was incorrect, but provided no supporting evidence for the claim, e.g. they have at best appealed to cynicism, or more realistically themselves as the 'authority'.

Now if CyclOp had presented actual support for their claim, or the erroneousness of Saagar's comment just responding with "Saagar knows more than you" would be BS, but that isn't what happened here.

In honesty, I'd also consider lapcat an authority on Mac and iOS dev as well.

Re:An Alerting Vista of macOS Sonoma by Cycl0p on Sunday July 09, 2023 @07:02PM (#36659959)
Don’t have to get so personal, I do not know saagarjha nor do I know of his various achievements writing software, and as a matter of fact, you do not know me either. I speak purely off experience, writing/porting software for macOS for more than 4 years, most of the time using Xcode.
Re:An Alerting Vista of macOS Sonoma by lapcat on Sunday July 09, 2023 @07:07PM (#36660010)
> Don’t have to get so personal

"Nonsense" was a very dismissive reply. What saagarjha said is not only sensical, it's true. And you were presuming to explain Xcode to people who know Xcode intimately.

> I speak purely off experience, writing/porting software for macOS for more than 4 years, most of the time using Xcode.

And I've been a professional Mac developer for 17 years.

It appears that you created your HN account less than an hour ago, for the purpose of talking down to someone who actually knows more than you do. I find this very sad.

Re:An Alerting Vista of macOS Sonoma by coldtea on Sunday July 09, 2023 @08:49PM (#36660688)
>I do not know saagarjha nor do I know of his various achievements writing software

Nor should we care in this context.

He either has a valid argument to respond to the parent's claim, or not.

The parent made a claim. The other guy can respond something like "You're wrong, this information is not shown in XCode".

Or he could let the comment slip, and stick to what he said above. Somebody else pointing out how he is an authority is not an argument.

Re:An Alerting Vista of macOS Sonoma by samtheprogram on Sunday July 09, 2023 @08:27PM (#36660552)
If the deprecated API is used by a library you're using and not compiling within Xcode (for example, IIRC the Facebook SDK), you're SOL.

Also, it appears not _all_ deprecated APIs are causing these alerts, making matters worse. If you are using several deprecated APIs but aren't sure which ones absolutely need fixing, it would be quite tedious -- especially because the error only appears once per app.

And all of this is very easily improved with more diagnostics as the article suggests.

Re:An Alerting Vista of macOS Sonoma by cmsj on Monday July 10, 2023 @07:10AM (#36664712)
You can also trivially suppress deprecation warnings with clang flags or pragmas, so even with Xcode there may not be a logged warning, because someone already decided "yes, I know this is deprecated, but there is no alternative, so we'll have cleaner build output thank you".
Re:An Alerting Vista of macOS Sonoma by joiqj on Sunday July 09, 2023 @07:05PM (#36659990)
Looking at the Console is precisely what I thought of, at least coming from Windows, where I'd be looking at the Event Viewer to know more about such a message. Does the Console show more information?
Re:An Alerting Vista of macOS Sonoma by saagarjha on Sunday July 09, 2023 @10:35PM (#36661386)
Will have to check but I think I remember looking at the code to generate these and didn’t spot anything but the alert enabled by default.
Re:An Alerting Vista of macOS Sonoma by bromuro on Sunday July 09, 2023 @07:11PM (#36660040)
Couldn’t it be just a bug in the beta?