• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Unable to pass NSString as argument in NSButton binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: How to use NSArchiver with ARC?
  • Next by Date: Re: Adding a background image to the GLPaint sample
  • Previous by thread: Re: How to use NSArchiver with ARC?
  • Next by thread: NSOutlineView View Based and editing
  • Index(es):
    • Date
    • Thread