Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Need Help creating Icon overlays for my SVN Client

Hi I am currently writing an cross platform SVN client. I have icon overlay working in windows and linux. This is a small image that sits on top of the normal icon in finder and represents the current state of the file, e.i out of sync, up to date, un-versioned. But am really struggling trying to get it to work in OSX. At this point I only want it to work in snow leopard. This is where I have got to so far.

I managed to create a QL plugin that worked. The only issue with QL plugins is that you have to specify what file types your plugin works for, (my sample worked for gifs). Unfortunately I don't know that as it needs to work for every file and folder on the system that contains a subfolder called .svn. So with a week of reading I have come to the decision that the only real way around this is to override the QLThumbnailImageCreate function that finder calls and replace it with my own if I find a .svn or call the original if not. However if this is the only route I have not been able to get any code to work that will replace the function with my own.

If any one can show me an example of switching that function, or has an alternative solution. Or knows the LSItemContentTypes type that means my plugin will fire for every single file, then I would be very happy. I've spent no more than 2 days getting this to work on windows and linux, but I've spent soooo many hours on OSX. Any help would be great.

MacBook, Mac OS X (10.6.4)

Posted on Aug 8, 2010 12:31 PM

Reply
16 replies

Jul 30, 2013 11:04 AM in response to DanUK

If anyone is looking for a completed solution for icon badges and context menus via swizzling, take a look at the Liferay Nativity project on github. The project provides a script bundle that will swizzle the relevant Finder methods and a Java client for setting the icons and context menus. It also includes equivalent projects for Windows and Linux.


The project is open source under LGPL, so feel free to contribute any bug fixes or improvements!

Need Help creating Icon overlays for my SVN Client

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.