Search Results

Search found 6 results on 1 pages for 'simbl'.

Page 1/1 | 1 

  • PackageMaker metapackage with SIMBL 0.9.x?

    - by subw
    I'm trying to create an installer using Apple's PackageMaker.app. As part of the installation, I want to install SIMBL with the metapackage mechanism provided by PackageMaker. However, when I add the SIMBL .pkg file and try to build my own package, I get the warning "No payload could be found. The package will not be built." for the SIMBL package reference. The same worked for an older version of SIMBL (0.8.*).

    Read the article

  • Generate "Finder.h" for a SIMBL plugin

    - by user1204395
    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!

    Read the article

  • Singletons in Cocoa Plugins

    - by David Beck
    How would I get a hold of a singleton in the main application from a SIMBL plugin? When I try to call something like [ProcessControl sharedInstance], I get an error that ProcessControl is undefined (even though it is declared in a header file).

    Read the article

  • How to dynamically replace a method implementation in ObjC2?

    - by Abhi
    I am trying to learn how to write plugins using SIMBL. I got my plugin to load with the target application, and also know the method that I wish to override. However, I am not able to use class_getInstanceMethod correctly based on snippets on the Internet. Have things changed in OSX 10.6 and/or ObjC2? The following code from culater.net gives "Dereferencing pointer to incomplete type" on the second-last statement: BOOL DTRenameSelector(Class _class, SEL _oldSelector, SEL _newSelector) { Method method = nil; // First, look for the methods method = class_getInstanceMethod(_class, _oldSelector); if (method == nil) return NO; method->method_name = _newSelector; return YES; } Is there a complete example of how to override a method using SIMBL plugins? Thanks!

    Read the article

  • How to dynamically replace a method implement in ObjC2?

    - by Abhi
    I am trying to learn how to write plugins using SIMBL. I got my plugin to load with the target application, and also know the method that I wish to override. However, I am not able to use class_getInstanceMethod correctly based on snippets on the Internet. Have things changed in OSX 10.6 and/or ObjC2? The following code from culater.net gives "Dereferencing pointer to incomplete type": BOOL DTRenameSelector(Class _class, SEL _oldSelector, SEL _newSelector) { Method method = nil; // First, look for the methods method = class_getInstanceMethod(_class, _oldSelector); if (method == nil) return NO; method->method_name = _newSelector; return YES; } Is there a complete example of how to override a method using SIMBL plugins? Thanks!

    Read the article

1