Post

Replies

Boosts

Views

Activity

Reply to Can someone explain this message
Happens with my app too on macOS (Ventura 13.3 (22E252), Xcode Version 14.3 (14E222b)). My app is a SwiftUI app. This is printed in the log every time I close a sheet opened from a View. Doesn't matter if the sheet is closed by pressing a button on view (dismiss() is called) or by pressing esc on keyboard. App file looks like this, if that matters: import SwiftUI @main struct MyBlahBlahApp: App { var body: some Scene { WindowGroup { ContentView() .environment(\.managedObjectContext, BlahBlahContainer.shared.persistentContainer.viewContext) } } }
Apr ’23
Reply to XCODE and IOS coding question
Hi, You posted this under the tag "Interface Builder", but I'll answer in general and provide also links to SwiftUI. Using it you could perhaps be able to implement what you wish to, and perhaps a bit easier. Maybe others can provide more relevant pointers to Interface Builder specific things. You'll find a good tutorial right here at the Apple Developer site: https://developer.apple.com/tutorials/swiftui Check these too: https://docs.swift.org/swift-book/documentation/the-swift-programming-language/ https://developer.apple.com/swift/resources/ Also, you want to check out many good persons offering hints and tips on programming at YouTube, for example Paul Hudson, Sean Allen, Stewart *****, Tundsdev, Mikaela Caron, Karin Prater, Mark Moeykens, etc. I'm sure others may provide other good sources for learning. At least Paul and Mark also write excellent books on the topic, surely also the others but these I know myself. https://www.youtube.com/@twostraws https://www.youtube.com/@seanallen https://www.youtube.com/@StewartLynch https://www.youtube.com/@tundsdev https://www.youtube.com/@MikaelaCaron https://www.youtube.com/@SwiftyPlace Furthermore, you'll find many open source projects at GitHub where you can start learning and including those in your future apps. Good luck and perseverance in your learning path!
Apr ’23
Reply to Failed to build ContentView.swift
Usually, a build error indicates that you have syntax errors in your code, missing things, typos, whatever. So what you can do is to fix those errors and try again. Would be lots easier to help if you show 1) the error message 2) you code. If you can show the code, may be against your company (if any) policy to show code on public discussion forums.
Apr ’23
Reply to Have 2 Task with for loops run concurrently?
EDIT: see my comments below to this post. Interesting. What I got this with this code both in a Xcode playground project and from a command line build is: task a begin task b begin chirp a @ 0 chirp b @ 0 chirp a @ 10000 chirp b @ 10000 chirp b @ 20000 chirp a @ 20000 chirp b @ 30000 chirp a @ 30000 chirp b @ 40000 chirp a @ 40000 chirp b @ 50000 chirp a @ 50000 chirp b @ 60000 chirp a @ 60000 chirp a @ 70000 chirp b @ 70000 chirp a @ 80000 chirp b @ 80000 chirp b @ 90000 chirp a @ 90000 chirp a @ 100000 chirp b @ 100000 task b end task a end swift-driver version: 1.62.15 Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51) Target: x86_64-apple-macosx13.0 (OS X 13.2.1) In a command line build I added at the end: while true { } To keep the process running until the output came, then ctrl-c to abort.
Mar ’23