CoreData: Binding 'enable' problem, and multiple content-sets
CoreData: Binding 'enable' problem, and multiple content-sets
- Subject: CoreData: Binding 'enable' problem, and multiple content-sets
- From: Oliver Donald <email@hidden>
- Date: Thu, 30 Jun 2005 16:40:31 +0100
Hi list, I have more noob questions,
I've got a table view that must allow multiple selection, however I have a
button that I only want to be enabled when a *single* value is selected in
the table view. I've bound the button's Enable value to @count, and as
expected the button is disabled when there is no selection, and enabled when
there is a single or multi selection. However, I can't work out how to
disable the button for multiple selection like I want.
I've set the Enable value's MultipleSelection value to 'No', along with
NullSelection and the others, but the button is still enabled when multiple
selections are made. How do I create the behaviour I want?
Also, I have a tableview that lists all the objects belonging to the
selected object in the first tableview. The second table is bound to an
NSArrayController who's Content-Set binding is set to the relevant key in
the selected object in the first tableview. This works perfectly for single
selections, but does not work for multiple selections. How do I get the
second tableview to list all the objects belonging to all the selected
objects in the first tableview? (the objects in the first have a one-to-many
relationship to the objects in the second).
Thanks,
Oli
DISCLAIMER: The information contained in this e-mail is confidential and may
be privileged. It is intended for the addressee only. If you are not the
intended recipient, please delete this e-mail immediately. The contents of
this email must not be disclosed or copied without the sender's consent. We
cannot accept any responsibility for viruses, so please scan all
attachments. The statements and opinions expressed in this message are those
of the author and do not necessarily reflect those of the company. The
company does not take any responsibility for the views of the author.
_______________________________________________
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