Message Boards

Overlay & context menu for OSX desktop

Alon Kiriati, modified 9 Years ago.

Overlay & context menu for OSX desktop

New Member Posts: 3 Join Date: 9/5/14 Recent Posts
As I installed the liferay nativity package I found out that there is no icon overlay and context menu for the osx desktop.
1.Is this supported or is there any plans on the roadmap to support it?
2. Is it technically possible to add this to the liferay nativity bundle or should I write a whole new osax project?
3. Any hints about how to get the methods I want to swizzle would be more than welcome

Best regards
thumbnail
Dennis Ju, modified 9 Years ago.

RE: Overlay & context menu for OSX desktop

Regular Member Posts: 228 Join Date: 9/30/10 Recent Posts
Hi Alon,

It's not on the roadmap and I haven't looked into adding icons for the Desktop, but it should be very doable using Nativity.

There's no surefire way (that I know of) to identify the methods that need to be swizzled. You can dump the Finder headers and try to identify the classes that are related to the Desktop (like TDesktopWindow, TDesktopViewController, TDesktopWindowController, etc). But this may not reveal the exact classes you need to swizzle into (for example, most of the current classes/methods we're swizzling aren't obvious: link).

You can also try capturing process dumps and try to identify the methods that are drawing the Desktop icons.

There's a bit of black magic involved in swizzling, so it will take a bit of trial and error to get it working.

My next major focus will be getting the icons working with Yosemite, but I'll poke around at the desktop icons when I get the chance.