• 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
Is this possible via bindings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is this possible via bindings?


  • Subject: Is this possible via bindings?
  • From: Brian Christmas <email@hidden>
  • Date: Mon, 15 Sep 2014 00:54:18 +1000

G'day scripters.

To explain…

I'ver got a table that contains data that I want the user to be able to re-arrange in any order they require, and an up and a down arrow to facilitate this. Also, I've got a button that deletes any selected item.

The arrows only become visible when more than one item is in the table.

I'd very much like the arrows to be visible when an item is selected, and the delete button to be disabled when no item is selected. Shane's Explorer tells us how to bind a delete button, but I can't use it, because of the arrows needing to only be visible when the count of the items > 1, so I need to call a handler as well as bind.

Also, the visibility of the arrows can't be bound to the 'remove' action of the Array Controller.

Is there any  way of binding so that…

1. The remove button is only enabled when a line is selected, as explained in Explorer,

2. The arrow buttons are only visible when a line is selected, and, the count of the tables items > 1?

Any advise as to whether or not such a thing is possible greatly appreciated.

Regards

Santa
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Reading a .plist file is freezing my App! Why please?
  • Next by Date: Please, I'm after help with some buttons.
  • Previous by thread: Reading a .plist file is freezing my App! Why please?
  • Next by thread: Please, I'm after help with some buttons.
  • Index(es):
    • Date
    • Thread