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 protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to