• 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
Bindings & NSTableView: setting cell as 'editable' based on another property
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings & NSTableView: setting cell as 'editable' based on another property


  • Subject: Bindings & NSTableView: setting cell as 'editable' based on another property
  • From: Andrew White <email@hidden>
  • Date: Thu, 02 Jun 2005 14:09:01 +1000


I have a table view, in which the entries can either be 'active' or 'inactive'. I'd like to set it up so that the user can only edit the name of an 'inactive' entry.


Is it possible to use bindings to set the editability of particular cells in a column, and how would I set this up?

For example:

NSArrayController bound to entries
Entry properties:
	name (name, setName)
	isActive (isActive)

I can easily set the underlying code up so that setName only works when isActive is true, but I'd like the interface to work the same way.

Can I work things so that the 'editable' property of the name *cell* (not column) is tied to the (negation of the) corresponding isActive property? How do I express this in IB?

Thanks

--
Andrew White

--------------------------------------------------------------------------
This email and any attachments may be confidential. They may contain legally
privileged information or copyright material. You should not read, copy,
use or disclose them without authorisation. If you are not an intended
recipient, please contact us at once by return email and then delete both
messages. We do not accept liability in connection with computer virus,
data corruption, delay, interruption, unauthorised access or unauthorised
amendment. This notice should not be removed.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Bindings & NSTableView: setting cell as 'editable' based on another property
      • From: Lee Morgan <email@hidden>
  • Prev by Date: Re: NSUserDefaultsController and Shared Defaults
  • Next by Date: Re: NSUserDefaultsController and Shared Defaults
  • Previous by thread: Re: NSUserDefaultsController and Shared Defaults
  • Next by thread: Re: Bindings & NSTableView: setting cell as 'editable' based on another property
  • Index(es):
    • Date
    • Thread