Re: Array Controller Add method question
Re: Array Controller Add method question
- Subject: Re: Array Controller Add method question
- From: email@hidden
- Date: Sat, 06 Dec 2008 22:15:15 -0500
You might try something like:
int row = [a indexOfObjectIdenticalTo:p];
[tableView editColumn:0 row:row withEvent:nil select:YES];
a = your array controller/arrary
p = object added
This sample from Hillegass' book, "Cocoa Programming for Mac OS X
Third Edition."
Good Luck!
Peace, Love, and Light,
/s/ Jon C. Munson II
Quoting vince <email@hidden>:
Thanks for the help ...
I'm using an Array Controller's Add method wired to a button to enable text
data entries into a table. How do I set the table to activate it's top row
when pressing the Add button in preparation for input? At this point if the
table contains many rows of data and the user clicks the Add button the
table's lowest row activates. The user is forced to scroll down to the very
bottom of the table prior to entry
Thanks again.
vince
_______________________________________________
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
_______________________________________________
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