It’s never to late to learn a new (programming) language ;) So I’ve been starting to learn Cocoa, Apple’s Objective-C based programming environment for Mac OS X.

My “Cocoa”-trip started with building a little application called “WSPluginSwitcher“, which is a Cocoa based tool for switching Flash plug-ins on OS X (Leopard).

Check it out – it’s open source, including its source code: WSPluginSwitcher on Google Code

Screen shots

Download WSPluginSwitcher including full source

You can download WSPluginSwitcher at its Google Code project.

To get the full source checkout the latest code using WSPluginSwitchers repository at Google Code.

It’s open source!

BTW: I’m very new to Cocoa, so I’m very happy about any feedback ;)

Helpful links for learning Cocoa as an ActionScript Developer

About 10 days of programming a new language is not enough to make a real statement… However, what I’ve have learned so far is: To learn Cocoa as quick as possible you will need a good book! Apple delivers tons of Cocoa guides, but it takes me (too) much time to find basic solutions. I know why I love Adobes Flex and AIR docs ;)

So I highly recommend the book called “Cocoa Programming for Max OS X” by Aaron Hillegass, which helps me a lot!

Further helpful links (not only for ActionScript Developers) are:

P.S.: Happy Flash plug-in switching using WSPluginSwitcher! ;)

9 Responses to “WSPluginSwitcher: Cocoa based tool for switching Flash plug-in on OS X”

  1. WS-Blog » Swiz example based on Adobe AIR and SQLite Says:

    [...] After diving into Objective-C for the last two weeks I have now the time to dive into Swiz. So I ported…. [...]

  2. J Marziani Says:

    I’ve twice checked my permissions on both the 2 files in the Library and my pluginArchive folders, but I still get the error

    Operation not permitted. You have to change the file permission of the installed Flash Player Plugin OR of the files located in: ‘/Applications/WSPluginSwitcher/pluginArchive/10.0.12.36d/’

    And ideas?
    Thx.

  3. sectore Says:

    @J: How did you change the permissions? Using the Finder (Finder -> Get Info -> Sharing & Permissions) or using the Terminal?

    For moving all needed files its permission have to be “777″. On my machine (Leopard 10.5.6) I can only change it successful using the Terminal (chmod command). Using the Finder I have the same issues (some permissions can be set to 775 only, but we need 777).

    At WSPluginSwitchers wiki page you will find a description how you can set the permission to 777 using Terminal. Check the chapter called “Set write permissions for installed Flash plug-ins”

    -Jens

  4. J Marziani Says:

    @sectore: You’re right, Finder wasn’t switching the permissions. Used sudo su to do the CHMOD in Terminal across the 2 plugin files in Library and across all the files within the archive folders. App launches without the error, but when I switch and the browsers restart, playerversion.com (nice touch btw) still says I’m using the original player.

    I’ll keep at it, but do you have any thoughts?

  5. sectore Says:

    @J: Maybe a cache issue by the browser…?

    -Jens

  6. J Marziani Says:

    Looks like the app isn’t overwriting the Flash Player.plugin file in Library/Internet Plugins/. File was last modified last night when I did a complete uninstall / reinstall of the player. Checked permissions for all involved files, all 777.

  7. sectore Says:

    @J: One more try: Could you remove the files of the current installed Flash Player Plugins from the “Internet Plugins” folder? You may back up these files. Than open WSPluginSwitcher and run it.

    -Jens

  8. J Marziani Says:

    Worked! Thanks so much. Good luck on your next Cocoa app.

  9. localToGlobal » Blog Archive » news review -> 2nd week of 2009 Says:

    [...] > WS-Blog » WSPluginSwitcher: Cocoa based tool for switching Flash plug-in on OS X [...]

Leave a Reply

Follow sectore on Twitter