I’ve succesfully added Sparkle framework to my ASStudio application following the Sparkle wiki.
Using code from Display Panel Example I’ve add a PreferencesPanel.nib as sheet with 3 check button (see screenshot) to set some Sparkle preferences.
Using IB, for 3rd check box, inside Button Bindings Inspector I’ve set Bind to: Shared User Default Controller, Control Key: Value, Model Key Path: “SUSendProfileInfo”. (see screenshot). This work; but…
Not sure about Model Kay Path I’ve used, I asked a question to Sparkle support.
As I mistake they answered me:
“For pref UI binding you should not use the pref keys at all, they’re private. Instead you should bind to SUUpdater (rather than NSUserDefaultsController) using its KVC compliant properties, in this case “sendsSystemProfile”.”.
And “…you should add an SUUpdater object instance to the nib and bind to that.”
Sorry but as I’m quite new to XCode, my fault is that I don’t understand this jargon.
This mean that I’ve to added a blue cube also in PreferencePanel.nib and “instantiate” as SUUpdater, then in Button Binding inspector I set Bind to: Updater? but then, what Model Key Path have I to use?
Doning that I get an AppleScript error “AppleEvent handler failed. (-10000)” when I open preferences sheet.
Have Ia to add some code or all can be done via IB and Button Binding Inspector?
How can I bind to SUUpdater (rather than NSUserDefaultsController) using its KVC compliant properties, in this case “sendsSystemProfile”."
Probably answer is at #2 of Customization wiki page, but I don’t understand this.
Thanks in advance for your “step by step” help.