« The weekly cocoa app challenge, week 2 | Main | The weekly cocoa app challenge, week 3 »
January 16, 2007
Source for weekly challenge number 2
Here's the source. Have fun.
Comments
These projects are great, thanks so much. I have just started my cocoa adventure.
I just used the following code for my buttons, is this less correct?
[[[NSAppleScript alloc] initWithSource:@"tell application \"iTunes\" to open"] executeAndReturnError:nil];
[[[NSAppleScript alloc] initWithSource:@"tell application \"iTunes\" to play next track"] executeAndReturnError:nil];
[[[NSAppleScript alloc] initWithSource:@"tell application \"iTunes\" to play previous track"] executeAndReturnError:nil];
Posted by: adamzap at January 17, 2007 10:52 AM
I think the way you're doing it is less correct. That's because the scripts you're typing straight into the program need to be compiled before they can run, so each time you click your button, the script needs to be compiled. In a larger application with bigger scripts this would create a performance problem, but in a small application like this, it makes little difference.
Posted by: Jasarien at January 17, 2007 06:11 PM
High is there anyway to color the Tiger footprint in menu bar.
With Shapeshifter in action, an option to change the footprint from black to yellow or whatever would be nice...Can this be done ?
Sincerely Jean Ascher
Posted by: Jean at January 18, 2007 07:54 AM
Jean,
This challenge did not involve a menu item. What in the world are you talking about?
Posted by: Chris Forsythe at January 18, 2007 08:06 AM