I'm having trouble hooking up a button on the settings pane of my QC
plug-in.
I have defined an outlet and an action in my source files:
in .h:
@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
I then had to manually:
-select File's owner, open inspector, add action (durFillPressed) and
outlet (settingDurFill).
(I think the above should show up automatically ??)
Then I used the File's owner pane (ctl-click) to:
Connect settingDurFill [outlet] to the NSButton object in my view
Connect durFillPressed [received action] to the same object in my view.
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
From the xcode file menu, I've tried syncronizing, reading in header
files, writing files - no help.
All the tutorials and example code look just like my code.
What am I doing wrong?
Is it possible that my project is somehow corrupt?
_______________________________________________
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]