Menu

Changing Icons With Desktops

Always_On
2004-04-11
2013-03-07
  • Always_On

    Always_On - 2004-04-11

    Found an Obj-C class floating around the net to switch between desktop icon sets. (http://www.runningincircles.com/IconSwitch.zip)

    It's probably not something that enough people are interested in to actually build it into the source (plus it doesn't have a license on it, so I'm not sure how it fits with the GPL), but anybody with XCode can add icon-switching functionality by adding 3 lines of code to Workspace.m:

    At the top, add:

    #import "DesktopIconManager.h"

    then at the end of selectWithTransition: option: duration: add

        DesktopIconController *iconController=[DesktopIconController sharedInstance];
        [iconController switchToDesktopIconSet: [self workspaceName]];

    Build, and you have icon switching!

     
    • Anonymous

      Anonymous - 2004-04-14

      Can't make it work:
      Where did you get the "DesktopIconManager.h" file?
      I only found "DesktopIconController.h" and "DesktopIconController.m"..

       
      • Always_On

        Always_On - 2004-04-15

        It should work as explained -- I'm not sure why it wouldn't work.  If you're interested, I've put up the entire XCode project, including my modifications (which includes switching icons, switching desktop backgrounds, and a preferences option to disable the modifications) here:

        http://www.runningincircles.com/dmwithicons.zip

         
    • Anonymous

      Anonymous - 2004-04-15

      Thanks a lot, man!
      Desktop backgrounds also works fine.
      Cool!
      It was nice if it work with Path Finder..
      Keep on rockin'
      And THKX!

       
      • Always_On

        Always_On - 2004-04-19

        Does it not work with Path Finder?

        I think Path Finder uses the same desktop folder as the Finder, so it should work.

         
    • Anonymous

      Anonymous - 2004-04-19

      It works with Path Finder, but every time I switch desktop it calls and some how starts Finder..

       
      • Always_On

        Always_On - 2004-04-19

        Oh, I see now.

        After it switches the desktop icons it makes a call to the Finder to refresh the desktop.  Changing that line to call Path Finder instead would fix the problem for the icon switching. 

        But Path Finder doesn't have any way for other programs to change the desktop picture, so the desktop picture switching still wouldn't work unless Finder or the Desktop Preference Pane was open.

        When I get the chance, I'll update it so that it calls Path Finder instead of Finder if Path Finder is running, but the switching desktop pictures still won't work without Finder -- Path Finder just won't do that.

         
    • Anonymous

      Anonymous - 2004-04-20

      Thanks for your help!
      I've beeing playing around with the "arch" version, covert looks very promissing. I will try to implement icon switching on this dev version.. Well I will make a try..

       
    • Anonymous

      Anonymous - 2004-09-03

      dear coolsoldier
      I really enjoyed your patch to dm0.51. I like to have
      different backgrounds. thank you!
      for some reasons that I have not yet understood, it doesnt work anymore. the program grabs all the cpu and memory and then it crashes when i try to switch desktop. I am not an expert, so do you have any ideas of this behavior. do you know if there is something similar to your patch also for the new dm0.52 version?
      thank you anyway

      teo

       
      • Always_On

        Always_On - 2004-09-03

        I've updated the patched version to 0.52, and made a few changes to the icon switching code.  You can download the new version at http://www.runningincircles.com/dmwithicons.zip

        If you still have problems with the new version, send me an email at coolsoldier (at) users.sourceforge.net

        --coolsoldier

         
    • Ame

      Ame - 2004-10-30

      Today I dl your version of the desktop manager...
      (i have all updates on my osX and a pb 12")

      wow...
      what the f!!!
      where did my desktop icons go?!

      is that a virus? --yes i'm a newbie to macOS...
      BTW, found them, they were hidden (dot thing)

      I lanch the app, at 1st desktop switch: icons of desktop disappear, it's ok, i got this version to do that...
      but when i get back on that desktop, icons don't come back.

      tried to look at code to see if it was simple enough for me to change that, but obviously: it's not ;)

      -> getting back to the original version of DM.

      PS: wouldn't it be better to be able to have ? background and ? Desktopicons features separeted?
      like i want only ?wallpapers but still my icons...

      thnx!
      go on with your work guys...
      you make thing go better in the world!
      at last in my mac ;)

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.