Howto add menu item to Mac OS Finder in Delphi XE2

Finally, I returned to this project and successfully registered service provider and handled service request. First of all I tried to use NSRegisterServicesProvider method, but there is no such method in Macapi sources, so I searched for applicationDidFinishLaunching delegate. Using it I registered my service provider: procedure TApplicationDelegate.applicationDidFinishLaunching(Notification: Pointer); var autoReleasePool: NSAutoreleasePool; app: NSApplication; provider: … Read more

How to run spell check on multiple files and display any incorrect words in shell script?

You can install aspell with Homebrew on OS X. brew info aspell lists supported languages. brew install aspell –lang=en,fi,jp aspell check opens a file in an interactive spell checker: for f in *.txt; do aspell check $f; done aspell list prints all unrecognized words: cat *.txt | aspell list | sort -u Learned words are … Read more

How do I install g++ on MacOS X?

That’s the compiler that comes with Apple’s XCode tools package. They’ve hacked on it a little, but basically it’s just g++. You can download XCode for free (well, mostly, you do have to sign up to become an ADC member, but that’s free too) here: http://developer.apple.com/technology/xcode.html Edit 2013-01-25: This answer was correct in 2010. It … Read more