Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Rebuild the services menu without logging out' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Rebuild the services menu without logging out
Authored by: avanham on Nov 25, '03 05:21:19PM
There is an error in the original code: The word NSUpdateDynamicservices() should have it's 's' capitalized on 'Services' and there were extra backslashes before the quote marks (eg " became \"). The corrected code is listed below. It runs on X-Code as long as you add the 'Appkit' framework to the project.

#include <Foundation/Foundation.h>
#include <AppKit/AppKit.h>

int main (int argc, const char * argv[]) {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    printf("The services menu has been rebuilt.\n");
    printf("You must restart any active applications to see changes.\n");
    [pool release];
    return 0;

[ Reply to This | # ]