I’ve been trying to add Sparkle to my app but have thus far failed. When I build and run my app the “Check for Updates” menu item remains grayed out. I have no idea why. I’ve tried making a new app and adding Sparkle to a blank app without problems. I have the Carbon framework linked in order to catch a modifier key held down on startup, but I can’t imagine any of my other code could be causing Sparkle to fail. There is no error, no reason given. It just doesn’t work.
Anyone have any idea what could be causing the problem? I know this isn’t much to go on, but I have no idea where to start or what to look for.
Sorry for not posting right back … but I forgot about the post.
Okay, I’ll just tell you step by step how I did it rather than starting right in the middle.
Add the framework to Xcode by dragging it to the other sources folder. choose to copy files into the proj.
then make a new build phase named “copy files.” drag the framework from the sources folder (in xcode) to the new build phase which is under targets.
Open your nib file and from the file menu choose read class files. select all the headers from inside the framework which is inside your xcode project folder.
now drag one of those blue boxes (NSObject) from the library. in the inspector, go to the identity tab (purple i)
a) for the class choose SUUpdater
b) add a new class action named: checkForUpdates:
now drag a new menu item to your menu bar. select it. then right click (control + left click) and drag this blue line showing up to the blue box (updater NS Object). choose checkForUpdates
save and back to xcode. open the file Info.plist (not infoplist.strings!!!). somewhere add the following line:
doing a better pdf guide now. ill post it here in thext 24 hours late night here so i will start it tomorrow sometime.
hold on tight
oh this issue was so crazy-hair-pulling that i gave up so many times until I finally figured it out and its just sooo great to have it i mean for applescript devs, something cocoa is always nice. LOL
Unfortunately that’s not working for me I have no idea why. I can put it in a new application, even one of Apple’s examples, but not my own. Something must be interfering with it.
That’s a great tutorial! Unfortunately my problem persisted even after checking all the steps with it.
I did, however, find out how to make it work, in a way. My Active Build Configuration was set to Release, and the Check for Updates… button would remain grayed out. Setting the Active Build Configuration to Debug made things work. Really not sure why. Not sure how to get it fully working either. Deleting all the build files did not help.
hm - debug is not going to be any good to you. if you actually check the logs in the debugger, does it say anything about sparkle? do you get warnings or something?
I think I have found the problem. My app includes the Carbon framework, which is used to recognise a modifier key held down on startup. It seems that Sparkle is not compatible with Carbon - you need another version that seems to be much harder to implement I’m still not sure, though, since I don’t don’t see how it would be affected by the build configuration.
I definitely completed every step in the instructions and in your tutorial.
I grabbed that but I’m not sure if it’s possible to integrate it into an Applescript app. I certainly don’t know how, anyway I think I’ll give up on Sparkle until the next version of my app