Post

Replies

Boosts

Views

Activity

Reply to Xcode problem on MAC M1 Monterrey
You have a clean (new) install of macOS 12.3.1. It doesn't have python. https://developer.apple.com/documentation/macos-release-notes/macos-12_3-release-notes Search the interweb to find why 'python' doesn't usually resolve automatically to python3, and the various ways you can install multiple versions of python on your machine. I use pyenv.
May ’22
Reply to Programmatically Change Default Application to Open a File With
from NSWorkspace.h (void)setDefaultApplicationAtURL:(NSURL *)applicationURL toOpenContentTypeOfFileAtURL:(NSURL *)url completionHandler:(void (^_Nullable)(NSError *_Nullable error))completionHandler API_AVAILABLE(macos(12.0)); before macOS 12, use LSSetDefaultRoleHandlerForContentType from LSInfo.h in the LaunchServices framework. No idea how to do this with AppleScript. You could use Automator to make a Folder Action for any file matching a pattern in a particular directory. You'd probably want to put a Set Application for Files action after a Filter Finder Items action.
Topic: App & System Services SubTopic: Core OS Tags:
May ’22
Reply to Some help with software signing and notarization.
https://developer.apple.com/forums/thread/128166 also, read the man pages for codesign and spctl, carefully. Read the log files from your failed notarization attempt - they're telling you what is wrong. Your app isn't signed, you didn't add the timestamp flag, you didn't enable the Hardened Runtime.
Topic: Code Signing SubTopic: General Tags:
May ’22
Reply to Trace/BPT trap: 5 problem in m1 mac
I'm pretty sure the reason this is happening is because you are trying to put the string "helloworld" into x. x has room for 10 chars, "helloworld" requires 11, because strcat wants to put the terminating null into the destination too. You can right-click on strcat and choose Services/Open man page in Terminal from the contextual menu to read about the correct use of strcat.
Topic: UI Frameworks SubTopic: General Tags:
May ’22
Reply to CoreMedia Camera Extension fails to activate
Quinn, thank you for the hint. I was filtering the Console output on my app name, the culprit was fingered by sysextd a few lines further up when I turned off that filter - I didn't prefix my Mach service name with the name of the app group in my entitlement. For future reference, the error 9 is listed in SystemExtension/SystemExtensions.h, and the term to search the SDK for is "OSSystemExtensionErrorDomain"
Topic: App & System Services SubTopic: Core OS Tags:
May ’22
Reply to What is the next step in coding?
I think the next step beyond "learning coding" is learning to apply that knowledge to a particular domain. Code does something, usually something useful to yourself or other people. What useful thing would you like to make possible? What would you like to learn, and how does being able to code help you with that goal?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’22
Reply to Swift Playgrounds: Learn to Code 1: Roll Right Roll Left Infinitely Walking Around
I entered your code and ran it. Byte doesn't stop walking because Byte isn't done. There's a little scoreboard at the top left of the scene - it shows Bytes has collected 1/1 gems and tripped 0/1 switches. Try to split your code into functions which do only one thing, and are well named. For instance, rename 'checker' to 'checkSwitch' and have it only change the switch state if necessary, rather than sometimes changes switch state, and sometimes move forward. In this exercise, the path is predictable (you can see it), so your steps can be a list of instructions, with no branches and no conditionals.
Apr ’22