• 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:48:53 -0500

Yes, you do.

Quoting vince <email@hidden>:

Thanks.
I'm using a Core Data model with Bindings.  So there's no code in my class.
I simply wired my Add object button to the the Array Controller's (Add)
action to insert data into the table. Do I need to implement the Add
method manually and customize there?

thanks again.

vince.

On Sat, Dec 6, 2008 at 10:15 PM, <email@hidden> wrote:

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





_______________________________________________

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


References: 
 >Array Controller Add method question (From: vince <email@hidden>)
 >Re: Array Controller Add method question (From: email@hidden)

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