Post

Replies

Boosts

Views

Activity

Cannot Add Identity to Custom Class
I'm trying to teach myself Swift using the "App Development with Swift" book. I've gotten to Chapter 4: Tables and Persistence and am working my way through the Emoji Dictionary app. I'm trying to customize a table cell. The book tells me to create a custom Cocoa touch file, and then add that to the Class identifier under the Identity inspector - but the file name does not show up under the drop-down menu. I have tried quitting Xcode and starting again, I've tried deleting the file and adding it again, I've searched the web and though I found a similar question on StackOverflow, the solution there did not work. This is driving me bonkers and I can't complete the assignment. Any help would be very appreciated.
6
0
1.4k
Oct ’20
App has Completely Opened on the Mac?
Is there some way to check if an app has opened successfully on the Mac? This may sound like a silly question - if you open Pages, you know it's been successfully opened when you can see or edit your documents. But here's my situation: I'm running an Automator script to try to open all the apps I need on a given workday at once. Not only open but - here's the kicker - I want them grouped on particular Spaces. So I've got a kludge that's workable: I open up an app or two, switch Spaces, and then introduce an artificial delay in the execution of the Automator script for a set time, usually ~5 seconds. However, depending on whatever other background processes are in play at the moment, this hard-coded time only successfully lands the apps in the appropriate Space about 70% of the time. So back to the original question: is there a way of knowing when an app has successfully and completely opened? That way I could just check for that, and then move to the next Space and continue.
0
0
624
Feb ’21