Post

Replies

Boosts

Views

Activity

Comment on Writing to Printer with Core Bluetooth
Thank you for your tips, Argun. There is no helpful documentation that comes with my cheap printer. So it's all on my own. I doubt that my contacting them will get anywhere. I thought that printing out a word or two could be a simple task, but I guess not. Although the printer comes with software, I just wanted to see how far I could go with Core Bluetooth.
Topic: App & System Services SubTopic: Core OS Tags:
Jan ’25
Comment on Text .onTapGesture Never Called When Shown with .onLongPressGesture
Yes. The simultaneous guy does it. There is a question of where the Text View should be placed, though.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’24
Comment on Send a Closure from NSViewRepresentable (or UIViewRepresentable) to ContentView?
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’24
Comment on Send a Closure from NSViewRepresentable (or UIViewRepresentable) to ContentView?
I've created a very simpler sample project. The ContentView guy doesn't received a call back. 😢
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’24
Comment on Send a Closure from NSViewRepresentable (or UIViewRepresentable) to ContentView?
I've placed 'tableRowAction()' inside tableViewSelectionDidChange(_:), and it works. Thanks a lot.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’24
Comment on Send a Closure from NSViewRepresentable (or UIViewRepresentable) to ContentView?
I realize that my question is confusing since I've posted irrelevant lines of code for a contextual menu. I'm sorry about that.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’24
Comment on Button.background(Color) under the Light Appearance
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’24
Comment on The Mystery of an Array of Strings and Escaped Characters
I need to quote each value with either an apostrophe or a double quotation mark, not an escaped one.
Replies
Boosts
Views
Activity
Aug ’24
Comment on The Mystery of an Array of Strings and Escaped Characters
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.
Replies
Boosts
Views
Activity
Aug ’24
Comment on The Mystery of an Array of Strings and Escaped Characters
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.
Replies
Boosts
Views
Activity
Aug ’24
Comment on Can SwiftUI View Receive a Call When Window Will Close?
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’24
Comment on Limiting the Number of Bool (True) Values
Yes. That works. Thanks a million.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’24
Comment on Limiting the Number of Bool (True) Values
Yeah... That came upon me while I was at sleep.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’24
Comment on Writing to Printer with Core Bluetooth
Thank you for your tips, Argun. There is no helpful documentation that comes with my cheap printer. So it's all on my own. I doubt that my contacting them will get anywhere. I thought that printing out a word or two could be a simple task, but I guess not. Although the printer comes with software, I just wanted to see how far I could go with Core Bluetooth.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jan ’25
Comment on Different Build Schemes -> Error: -Onone Swift optimization level to use previews
Hello, I am afraid I find nothing to report to you under the Analytics Data list.
Replies
Boosts
Views
Activity
Feb ’25
Comment on Different Build Schemes -> Error: -Onone Swift optimization level to use previews
Pardon me, but the sysdiagnose archive file has a size of 377.6 MB. There is no way of me replying to the original DTS ticket with it.
Replies
Boosts
Views
Activity
Mar ’25