Post

Replies

Boosts

Views

Activity

Reply to C Programming
I'm just checking if I'm doing anything wrong No one here can tell you if you're doing anything wrong because you haven't mentioned what you're doing other than doing some C programming. Some information that would let people help you would include the following: The version of Xcode you're running The version of macOS you're running The Mac model you're using, amount of RAM, and amount of storage The type of Xcode project you created The number of files in the project The specific activity that causes the beach ball: opening the project, selecting a file, editing code, building the project, etc. Do you have any large files (tens of thousands of lines of code) in the project? Are you using any external libraries?
Nov ’22
Reply to One Xcode project, different SDKs for different architectures
You don't need to use multiple SDKs. You can use the latest SDK and support older OS versions. If you want to support macOS 10.10, set the deployment target to 10.10. You have to be careful to avoid using anything Apple introduced in later OS versions. For example to using SwiftUI in a Mac app will not allow the app to run on anything earlier than 10.15. Take a look at the following articles for more details: https://www.swiftdevjournal.com/supporting-older-versions-of-ios-and-macos/ https://www.swiftdevjournal.com/using-new-api-features-in-swift-while-supporting-older-os-versions/
Oct ’22
Reply to SpriteKit - How do I learn to use this?
You can find the book 2D Apple Games by Tutorials at the following URL: https://github.com/raywenderlich/deprecated-books SpriteKit hasn't changed much since the book came out. The biggest issue you'll have to deal with is Xcode changes. The following sites has some introductory articles on using SpriteKit: https://www.checksimgames.com/
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’22
Reply to SwiftUI Tutorial Application Alleged Incompatibility with macOS
You don't need to restart the tutorial. The SwiftUI previews are flaky. Try turning off the preview canvas when entering the code for the preview and turning it back on when you're done typing the code. If you don't know how to turn off the preview canvas, read the following: https://swiftdevjournal.github.io/intro-swiftui-guide/Previews If you are still having problems with the canvas, you can turn off the preview canvas and run the project in the Simulator. The Simulator takes a long time to launch the first time you run the project, but after that, building and running the project isn't much slower than the preview canvas.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’22
Reply to SwiftUI Tutorial Application Alleged Incompatibility with macOS
I took a look at the tutorial and I saw nothing in it that requires macOS 13. Can you clarify what you were doing when you got the error messages? Did the errors occur when you were typing code or when you build the project? At that point in the tutorial, it says the previews won't work because of the new stuff you typed. The next section in the tutorial fixes the problem.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’22
Reply to Swiftui MacOS App Example Project OnDelete func
If you are talking about removing items from SwiftUI lists, the modifier for Mac apps is .onDeleteCommand instead of .onDelete, which iOS apps use. For anyone to provide more help, you have to provide the code to delete the item from Core Data and the SwiftUI code for deleting items. The following article may help you: https://www.swiftdevjournal.com/removing-items-from-swiftui-lists-in-mac-apps/
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’22
Reply to Xcode 14 / iOS 16 - UIViewRepresentables must be value types
Were you able to use a class in earlier Xcode versions? I am almost 100 percent sure you have to make PlayerView a struct. SwiftUI views are structs. The UIViewRepresentable protocol lets you wrap UIKit views to use them in SwiftUI apps, essentially converting UIKit views to SwiftUI views. Therefore views that use UIViewRepresentable must be structs. Create a new class that has the @Published property and the Combine publishers. Add an instance of the class to PlayerView. That way you can use the @Published property and have the view be a struct.
Sep ’22
Reply to Using Document Picker to access files inside app directories
A document picker can't access files inside the app bundle. Use the methods in the Bundle class to load files from the app bundle. If you have documents in the app bundle that you want people to open in the app, copy the documents from the app bundle to the app's Documents directory. The FileManager class has a copyItem method to copy a file from one URL to another.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’22