@interface PresetMgr16PlugIn : QCPlugIn
{
IBOutlet NSButton* settingDurFill;
}
- (IBAction)durFillPressed:(id)sender;
In .m:
@implementation PresetMgr16PlugIn
- (id) init
{
[settingDurFill setEnabled:true]; // This works OK
}
- (IBAction)durFillPressed:(id)sender
{
NSLog(@"Dur Button Pressed");
}
@end
Whenever I load the plug-in, I get this in the console:
2007-12-31 13:35:39.561 Quartz Composer[3163:10b] Could not connect
the action durFillPressed: to target of class QCPlugInViewController
Totally shooting from the hip here, so I may be completely off. The
MovieExporter example plugin creates a QCPlugInViewController in its
createViewController method, and doesn't have any IBOutlet/IBAction
stuff going on inside, so I'm thinking your approach isn't what the QC
team had in mind. None of that project's nib stuff appears to be
bound (via ctrl-clicking) to anything interesting in the project.
Instead, you might want to try using the KVC stuff that's outlined in
that project.
To see how the IB stuff is bound in the MovieExporter project, open up
its nib, and select one of the two inputs, the selection box or the
slider.
Then, click the Bindings tab in the inspector (the one with the Green
Square and Circle), and expand "Value" or "Content Values (blah
blah...)" . Under this, you'll see a text field titled "Model Key
Path", which has the value "plugIn.codecTypes" or
"plugIn.codecQuality" depending on which one you selected. These
connect them to the local variables _codecTypes and _codecQuality in
the .h file I think. Note the "plugInKeys" method of the plugin as
well.
So instead of having the Inspector panel execute methods that do
stuff, they control values in the plugin that affect its behaviour.
No method invocation involved (as far as you're concerned).
--
[ christopher wright ]
[EMAIL PROTECTED]
http://kineme.net/
_______________________________________________
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]