Hi Luke,

in the inspector of the button switch to "Attributes". Here you have to set the "Type" to "on off" or "Push on Push off". Then you will get the "Value" as a binding option.

best,

Achim Breidenbach
Boinx Software


On 10.05.2010, at 15:35, luca palmili wrote:

Hi, I'm having some troubles in configuring bindings in the interface builder side of my custom QC plugin. If I use a Checkbox in my interface, I do the following to bind it correctly with the code:
I added this lines in  the .h file of my QC plugin app:
BOOL checkVal;
@property BOOL checkVal;
I added this lines in  the .m file of my QC plugin app:
@synthesize saveCP
- (void)setCheckVal:(BOOL)value {
    NSLog(@"You clicked the checkBox!\n");
}
In interface builder I modify the property of the checkbox in this way:
Button Bindings / Value / Bind to: File's owner.
I put plugIn.checkVal in the "Model Key Path" textfield.
And everything goes fine: the log prints out the string when I click on the checkbox in the setting panel of my plugin. The problem rises up when I try to replace the checkbox with a simple "push button". The Interface builder property for the button doesn't have "Value" bindings as the checkbox, but has "Argument" and "Target" bindings instead.. ..how can I properly configure Interface builder property of the button to bind the clicks on the button with my app?

Thank you,
Luke
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected] )
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/achim%40boinx.com

This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to