Unable to pass NSString as argument in NSButton binding
Unable to pass NSString as argument in NSButton binding
- Subject: Unable to pass NSString as argument in NSButton binding
- From: Devarshi Kulshreshtha <email@hidden>
- Date: Wed, 28 Mar 2012 21:03:14 +0530
Hi All,
I am trying to perform an action on a button using bindings, so I declared
and defined following method in my app-controller class:
- (void)selectFolderAtPath:(NSString *)path;
And I did following bindings on button in IB:
Argument:
Bind to: App Delegate
Model Key Path: sourcePath (this is a NSString property declared and
synthesized in App Delegate)
Selector Name: selectFolderAtPath:
Target:
Bind to: App Delegate
Model Key Path: self
Selector Name: selectFolderAtPath:
Problem is - if I de-select 'Argument' binding then only method is getting
invoked, otherwise it is not working.
Can any one suggest me - how can I pass a NSString as argument to
the method invoked, using cocoa-bindings?
Thanks,
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden