Fw: Inline editing in NSTableViews
Fw: Inline editing in NSTableViews
- Subject: Fw: Inline editing in NSTableViews
- From: email@hidden
- Date: Mon, 14 Oct 2002 10:01:09 +0000
It's part of the datasource methods
you need to implement
- (void)tableView:(NSTableView *)aTableView
setObjectValue:(id)anObject
forTableColumn:(NSTableColumn *)aTableColumn
row:(int)rowIndex
within the object designated as the datasource
Have a look at appkit s NSTableDataSource (its right at the end amongst
the protocols)
----- Forwarded by Warren Burton/LONDON/FINANCIAL TIMES on 14/10/02 09:59
am -----
Phillip Hutchings <email@hidden>
Sent by: email@hidden
14/10/02 09:07 pm
To: email@hidden
cc:
Subject: Inline editing in NSTableViews
This email may contain confidential material. If you were not an
intended recipient, please notify the sender and delete all copies.
We may monitor email to and from our network.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
How do you set up a NSTableView so that users can double click a cell
to edit it? I have cells set to editable, but I can't figure out how to
find out when an edit has happened to record the new value. I can't
find examples on the internet either.
According to NSTableView docs selectionShouldChangeInTableView should
be used to check edited values for correctness, but this is only called
when the row changes, if a user edits multiple items in a row these
values aren't saved.
The text textShouldEndEditing fits the bill perfectly, but how do I
find out which cell was edited?
- -------------------------------
Phillip Hutchings
http://www.sitharus.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)
iEYEARECAAYFAj2qeysACgkQ1PJqI21cmKDmGwCff7c7YYPItBMQ5hiZZXh1hZQ5
sU8An2LTI1meG+kdfLNrc/m5PoAnE6PB
=h49e
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
This email may contain confidential material. If you were not an
intended recipient, please notify the sender and delete all copies.
We may monitor email to and from our network.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.