• 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: Select tablecell on creation through arrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Select tablecell on creation through arrayController


  • Subject: Re: Select tablecell on creation through arrayController
  • From: Walker Argendeli <email@hidden>
  • Date: Wed, 25 Feb 2009 22:12:45 -0500

The code is now this, which works- kindof:

[notebookController add:sender];
[notebookTableView editColumn:0 row:[notebookTableView selectedRow] withEvent:nil select:YES];


Only problem is, for the second line, I actually have to kick off a timer...:
[NSTimer scheduledTimerWithTimeInterval:.01
target:self
selector:@selector(beginTextFieldCellEdit)
userInfo:nil
repeats:NO];
...that calls the second line from the first snippet in beginTextFieldCellEdit.
Anybody know what's going on here?


- Walker Argendeli

On Feb 25, 2009, at 5:11 PM, Walker Argendeli wrote:

I have a table with one column, that's bound to an array controller. It calls add: on the array controller when I hit a plus button. Problem is, I want the textFieldCell to be selected on creation. I rewired the plus button to call a method in a custom class. The first thing the custom class does is call the array controller's add method. This works fine. Then, I had some custom code based off code I used in old (non-bindings) apps. It doesn't work though, console logs *** -[NSCFArray objectAtIndex:]: index (1) beyond bounds (1)
Anyone understand what's going one, or have any code that would make it work?


[notebookController add:sender];
[tableView editColumn:1 row:[tableView selectedRow] withEvent:nil select:YES];


Thanks,
- Walker Argendeli


_______________________________________________

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: Select tablecell on creation through arrayController
      • From: Quincey Morris <email@hidden>
References: 
 >Select tablecell on creation through arrayController (From: Walker Argendeli <email@hidden>)

  • Prev by Date: Re: One IBAction, multiple results from multiple methods
  • Next by Date: Re: One IBAction, multiple results from multiple methods
  • Previous by thread: Re: Select tablecell on creation through arrayController
  • Next by thread: Re: Select tablecell on creation through arrayController
  • Index(es):
    • Date
    • Thread