Re: Setting app icon in NSWorkspace

2024-03-22 Thread Mark Allan via Cocoa-dev
Sorry Alex. I've done some more testing and it looks like I was mistaken. It *doesn't* break code signing, but it does do something odd - on any Build & Run from within Xcode after making that NSWorkspace API call, the codesign tool gives the following error message unless I clean the build

Re: Setting app icon in NSWorkspace

2024-03-22 Thread Alex Zavatone via Cocoa-dev
That’s a great idea. For a Mac app, I suppose. I wonder if a simple change in the bundle where you have the icon file be symlink to a folder in the app’s documents folder and then change that file? What if you issue a shell script to restart the Dock? What happens if you change the icon

Setting app icon in NSWorkspace

2024-03-22 Thread Mark Allan via Cocoa-dev
Hi all, I'm trying to offer my users the option (via a pre-defined list in my app's Preferences) to choose an app icon which shows up in the Dock and the Finder. Updating the Dock tile whilst the app is running is fairly simple to achieve, but I also want the Dock icon and Finder icons to