Post

Replies

Boosts

Views

Activity

Reply to Xcode and Open With External Editor
I am perhaps a little to late to the party with a solution for this, however ... In Finder, find a file of the same type that you want to change the default file for. Right -click and Get Info Below the comments section is the 'Open with' section which will allow you to set the default application to open this one file or all files of this type across the whole of MacOS and not just Xcode. Again, sorry for the delay folks Also, see https://stackoverflow.com/questions/75463720/xcode-open-with-external-editor for further info.
Feb ’26
Reply to Xcode has two kinds of source tabs. What are they?
On my editors, the titles of the files are in the same font. However, the selected editor window which has the cursor in has the file title highlighted. When you click on a file in the navigator, then this is the editor window which will now have the selected file in. Also, the file location breadcrumbs have the Xcode logo just to the left highlighted. Sorry but I can't load a screenshot at the moment but hope this helps.
Jun ’23
Reply to Regex Sample Code - Errors with code at [3:49}
I concur that .split(by: RegexComponent) is the way to go as it accepts RegexComponent rather than .split(separator: Character) which just accepts a single character. Here is an example of a case statement using Regexs. //  does a string start with a word of one or more letters? var possibleWords   = ["word", " text", "1stop", "-spaced", "987-", "987again"] for word in possibleWords {     switch true {     case word.starts(with: /\d{3}-/) :         print("'\(word)' starts with  3-digits and a hyphen.")     case word.starts(with: /\d+/) :         print("'\(word)' starts with digit(s).")     case word.starts(with: /\w+/) :         print("'\(word)' starts with a word.")     case word.starts(with: /\s+/) :         print("'\(word)' starts with a whitespace.")     default:         print("'\(word)' had no Matches")     } } The output from this is 'word' starts with a word. ' text' starts with a whitespace. '1stop' starts with digit(s). '-spaced' had no Matches '987-' starts with  3-digits and a hyphen. '987again' starts with digit(s). Hope this helps Chris
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’22
Reply to Monterey B1 on VMWare Fusion fails
Im going to give this a try: https://blog.eucse.com/how-to-run-macos-monterey-12-beta-in-vmware-fusion/ How to run macOS Monterey (12) Beta in VMware Fusion WRITTEN BYADAM MATTHEWS POSTED ON JUNE 9, 202114 COMMENTS ON HOW TO RUN MACOS MONTEREY (12) BETA IN VMWARE FUSION macOS Monterey was announced on the 7th June, and of course like good Digital Workspace people we were right into testing mode! during initial Fusion testing we were running into some fun errors/delays, which we have worked out and documented here. So if you’re trying to get Monterey working in VMware Fusion and having some issues, read on!
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’21
Reply to Xcode and Open With External Editor
I am perhaps a little to late to the party with a solution for this, however ... In Finder, find a file of the same type that you want to change the default file for. Right -click and Get Info Below the comments section is the 'Open with' section which will allow you to set the default application to open this one file or all files of this type across the whole of MacOS and not just Xcode. Again, sorry for the delay folks Also, see https://stackoverflow.com/questions/75463720/xcode-open-with-external-editor for further info.
Replies
Boosts
Views
Activity
Feb ’26
Reply to Create a new GitHub Remote Repository - Unknown Error
Albert, You are a star, thank you. I had created another project six years ago and happened to use the same name, doh! I renamed the old one on GitHub and now all is good. I will amend the feedback that I had already created so as to detail the failure mode/unhandled condition. Hope you have a good day. Chris
Replies
Boosts
Views
Activity
Jan ’26
Reply to Table container, when scrolling content, the content will appear underneath and to the top of the column headings.
Thank you for your response. I have submitted feedback FB20670375 The project is available at https://github.com/csantavy/TableContainer.git
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Oct ’25
Reply to Xcode has two kinds of source tabs. What are they?
On my editors, the titles of the files are in the same font. However, the selected editor window which has the cursor in has the file title highlighted. When you click on a file in the navigator, then this is the editor window which will now have the selected file in. Also, the file location breadcrumbs have the Xcode logo just to the left highlighted. Sorry but I can't load a screenshot at the moment but hope this helps.
Replies
Boosts
Views
Activity
Jun ’23
Reply to func jsonRepresentation(options: JSONWritingOptions = .init()) throws -> Data returns an UnsafeRawPointer
Thank you for your reponse. What I don't understand is why I cannot therefore write let myJSON = myDataFrame.jsonRepresentaion()
Topic: Machine Learning & AI SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to Regex code from WWDC sample code not working
Try Lookahead(fieldSeparator, negative: true)
Replies
Boosts
Views
Activity
Jun ’22
Reply to Regex Sample Code - Errors with code at [3:49}
I concur that .split(by: RegexComponent) is the way to go as it accepts RegexComponent rather than .split(separator: Character) which just accepts a single character. Here is an example of a case statement using Regexs. //  does a string start with a word of one or more letters? var possibleWords   = ["word", " text", "1stop", "-spaced", "987-", "987again"] for word in possibleWords {     switch true {     case word.starts(with: /\d{3}-/) :         print("'\(word)' starts with  3-digits and a hyphen.")     case word.starts(with: /\d+/) :         print("'\(word)' starts with digit(s).")     case word.starts(with: /\w+/) :         print("'\(word)' starts with a word.")     case word.starts(with: /\s+/) :         print("'\(word)' starts with a whitespace.")     default:         print("'\(word)' had no Matches")     } } The output from this is 'word' starts with a word. ' text' starts with a whitespace. '1stop' starts with digit(s). '-spaced' had no Matches '987-' starts with  3-digits and a hyphen. '987again' starts with digit(s). Hope this helps Chris
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to Monterey B1 on VMWare Fusion fails
Im going to give this a try: https://blog.eucse.com/how-to-run-macos-monterey-12-beta-in-vmware-fusion/ How to run macOS Monterey (12) Beta in VMware Fusion WRITTEN BYADAM MATTHEWS POSTED ON JUNE 9, 202114 COMMENTS ON HOW TO RUN MACOS MONTEREY (12) BETA IN VMWARE FUSION macOS Monterey was announced on the 7th June, and of course like good Digital Workspace people we were right into testing mode! during initial Fusion testing we were running into some fun errors/delays, which we have worked out and documented here. So if you’re trying to get Monterey working in VMware Fusion and having some issues, read on!
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’21