• 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
Re: Array Controller Add method question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Array Controller Add method question
      • From: mmalcolm crawford <email@hidden>
References: 
 >Array Controller Add method question (From: vince <email@hidden>)

  • Prev by Date: Array Controller Add method question
  • Next by Date: NSImageView gets stuck
  • Previous by thread: Array Controller Add method question
  • Next by thread: Re: Array Controller Add method question
  • Index(es):
    • Date
    • Thread