Generate "Finder.h" for a SIMBL plugin
Posted
by
user1204395
on Stack Overflow
See other posts from Stack Overflow
or by user1204395
Published on 2012-03-18T19:15:38Z
Indexed on
2012/06/27
21:16 UTC
Read the original article
Hit count: 213
I'm trying to create a SIMBL plugin for Finder to add icon overlay over some files.
I have this code:
@implementation NSObject (FAIconOverlay)
- (void)FAIconOverlay_TIconAndTextCell_drawIconWithFrame:(struct CGRect)arg1
{
[self FAIconOverlay_TIconAndTextCell_drawIconWithFrame:arg1];
if (![self respondsToSelector:@selector(node)]) {
return;
}
NSLog(@"%@", [[[NSClassFromString(@"FINode") nodeWithFENode:[(TNodeIconAndNameCell *)self node]] fullPath] lastPathComponent]);
// Draw the icon overlay
}
- (void)FAIconOverlay_TDesktopIcon_drawIconInContext:(struct CGContext *)arg1
{
[self FAIconOverlay_TDesktopIcon_drawIconInContext:arg1];
}
@end
I can draw the icon overlay but, when I try to get the path of the file I get a "Use of undeclared identifier TNodeIconAndNameCell". Looking this link < How to Write OS X Finder plugin > I see that is neccessary to generate a Finder.h file...
My question is: How to generate this file?? I tried running "class-dump -H Finder.app" but I get too more compiling errors
Thank you very much!
© Stack Overflow or respective owner