Archive for the 'cocoa' Category
Open URL in Background
Friday, October 27th, 2006
I wanted to programatically open a URL in the associated application. I started in Xcode’s Developer Documentation and searched for openURL which seemed like a good method name. I found the NSWorkspace class’ openURL method. I love it when that happens. One line of code later and I was opening URLs.
Preparing for IronCoder 4
Thursday, October 26th, 2006I’ve been trying to clear my plate for this weekend so I can participate in IronCoder 4. Since I work best under pressure, this is a great way for me to expand and refine my Cocoa skills.
If you are interested, you can learn more on the IronCoder website and the #macsb IRC channel. (Yes, IRC. Until this week, I probably hadn’t used IRC since 1992. If you are in a similar position, don’t worry; the clients are much better now. Freenode’s FAQ was helpful in figuring out how to register my nick.)
Speech Synthesis Manager
Tuesday, October 17th, 2006NSSpeechSynthesizer class is extremely easy to use, but doesn’t provide access to any speech-related property other than the voice. So, I was off to read up on the Speech Synthesis Manager (which I remember as just the Speech Manager). While I think it would be great if NSSpeechSynthesizer exposed all of the features available in the Speech Synthesis Manager, I’m not going to rake another Carbon library over the coals; that’s already been done quite well. Instead, I’m going to share the problems I encountered and the solutions I found when integrating the Speech Synthesis Manager into my Cocoa application. 