Thanks, DTS Engineer. Unfortunately, that's worse than using NSWindowDelegate with AppDelegate. My sample macOS application never receives a call with scenePhase when a window closes.
Post
Replies
Boosts
Views
Activity
Actually, I'm not so sure that it's the escaped apostrophe that causes an SQLite error. I assumed so without realizing that the printed text in the console box is not what SQLite sees. Anyway, I'm going to bed. Thanks for pointing that out.
Oh, I see what you mean. If I try to use an SQL command with a string quoted with apostrophes in order to insert initial values to an SQLite database file, SQLite seems to see escaped apostrophes rather than apostrophes as SQLite gives me an error.
I need to quote each value with either an apostrophe or a double quotation mark, not an escaped one.
Thank you for your tip, DTS Engineer. I guess, you've given me a clue. The background color doesn't change because it has no button style. I've added .buttonStyle(.plain) below the clipShape line. And it now has a background color. Thank you.
I realize that my question is confusing since I've posted irrelevant lines of code for a contextual menu. I'm sorry about that.
I've placed 'tableRowAction()' inside tableViewSelectionDidChange(_:), and it works. Thanks a lot.
I've created a very simpler sample project. The ContentView guy doesn't received a call back. 😢
Thank you, DTS Engineer. That's exactly what I have been trying to do. That @escaping part is what I was not able to figure out. Anyway, I've implemented it with no errors. Unfortunately, the ContentView guy doesn't receive a tableRowAction callBack. I'll make a sample project with a simpler version and give it a try.
Yes. The simultaneous guy does it. There is a question of where the Text View should be placed, though.
Several years ago, I had a macOS application and an iOS app that goes with the former. The iOS app was accepted into the store. They've rejected our macOS application, saying there already existed a similar product. We simply accepted a defeat and moved on. Who cares about how much money we have lost?
Thank you, eskimo. I think I understand your point.
Hello, Eskimo. Thank you for your advice.
So are you saying that it's okay for the application to have the rainbow wheel stick around while it's doing heavy duty work? I do show a 'Please wait' label over the window sheet. I have an abort button that the user can click on to abort the process. I guess the abort button is needed, then.
Thanks. I have done so, actually, with no vail. With or without priority set to .background, .high, or .low, it doesn't help.
That solves the problem. Thanks a lot.