Post not yet marked as solved
I made a simple personal-use/testing watchOS app with a button that toggles the "mic muted" state of a chat application for Mac while on the same network. I'm now thinking about adapting this into a proper, distributable app with a companion Mac app.
This has me wondering: Is there some solution in Apple's various frameworks that would allow me to "broadcast" a request of this sort from my watch, either over the cloud or over the local network, to my companion Mac app without much in the way of user configuration? My current solution of "make an HTTP request to the hardcoded URI of a server running on my Mac" obviously isn't adaptable to different users or devices.
I considered Bonjour but it seems to be partially/fully deprecated and probably wouldn't let the user ensure only their own devices are controlled. Perhaps Handoff or something on CloudKit could be used for this purpose?
I want to use BC7 textures in a project that's largely using OpenGL 4.1, relying on whatever support Apple has left.
(...I accidentally implemented my whole asset pipeline without checking whether the extension existed on my mac... D:)
ARB_texture_compression_bptc does not appear to be supported as per this document - https://developer.apple.com/opengl/OpenGL-Capabilities-Tables.pdf.
Considering it's possible to share pixel buffers between OpenGL and Metal, is there some potential hackish route to rendering textures in these formats from OpenGL?
Post not yet marked as solved
I'm making a simple swiftUI page that has a list view beneath a navigation bar, which uses automatic title sizing. I'd like the "Add" button to align vertically with the large navigation bar title, rather than appearing above it, as it does when my view looks like so:
NavigationView {
		Form {
				List {
						ForEach(servers) { server in
								Text("Server at \(server.address!)")
						}
						.onDelete(perform: deleteItems)
				}
				
		}
		.toolbar {
				ToolbarItem(placement: .navigationBarTrailing	 ) {
						Button(action: addItem) {
								Label("Add Item", systemImage: "plus")
						}
				}
		}
		.navigationBarTitle("Servers")
}
The way it is now, the + button is physically separated from the list it's associated with by a massive gap created to accommodate the navigation bar title.
Is there any way to align the + button vertically so that it lines up neatly with the navigation title, or at least appears below it?
Post not yet marked as solved
I've been trying to edit a SpriteKit SKS scene on Xcode 12.3 on macOS Big Sur. I can add sprites, move things around, etc. - but some completely normal things cause Xcode to misbehave or crash entirely for me:
Undoing changes with Cmd+Z can sometimes cause a crash such as this - this happens almost at random for various changes to a scene, rather than in a manner I can reproduce:
DVTUndoManager for delegate:<SKSceneDocument 0x7fb483740220>
Sending undo: to IDEInspectorViewController from <NSMenuItem: 0x7fb480f5ce70 Undo>
ProductBuildVersion: 12C33
UNCAUGHT EXCEPTION (NSInternalInconsistencyException): undo: DVTUndoManager 0x7fb48480a770 is in invalid state, undo was called with too many nested undo groups
I can't edit actions / animations from the timeline for some nodes, but I can for others. Adding, for example, a "Move To" action to any node with child nodes beneath it, clicking on the action in the timeline entirely blanks out the right panel instead of letting me edit the properties of the action. Trying to make changes to actions often causes things to crash as well.
Is there any solution to this, such as an alternate build of Xcode where these constant SpriteKit crashes are fixed?
I'm working on an app that I intend to publish online. The app is a bit odd - it's built by compiling executables directly from a Makefile, then placing them, an icon, a launch .sh, and an Info.plist into a bundle.
I've tried code-signing this app with my personal development certificate. This seems to work fine, except in some cases, others are forced to navigate to their Preferences and manually authorize the app as it's from an 'unidentified developer', or macOS Big Sur claims that it can't check the app for malicious software and that it needs to be updated.
What do I need to do? codesign --verify says that my app fulfills all requirements.