• 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: Edit Newly Inserted Row Via Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Edit Newly Inserted Row Via Bindings


  • Subject: Re: Edit Newly Inserted Row Via Bindings
  • From: mmalcolm crawford <email@hidden>
  • Date: Tue, 14 Jun 2005 23:13:39 -0700


On Jun 14, 2005, at 10:03 PM, Todd Ransom wrote:
I had the same problem and could not figure out a way to do it without using a table data source. Since I did not want to do that I settled on the following for my one column table:
- (void)tableViewSelectionDidChange:(NSNotification *)aNotification {


    NSTableView *tv = [aNotification object];
    [tv editColumn: 0
        row:[tv selectedRow]
        withEvent: nil
        select: YES];
}


If you use a custom array controller and provide an outlet to the table view, you could also override addObject:


- (void)addObject:(id)object

{
    [super addObject:(id)object];
    [tableView editColumn:0
                      row:[self selectionIndex]
                withEvent: nil
                   select: YES];
}


mmalc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Edit Newly Inserted Row Via Bindings (From: Justin Williams <email@hidden>)
 >Re: Edit Newly Inserted Row Via Bindings (From: Todd Ransom <email@hidden>)

  • Prev by Date: Re: xcode-->java-->cocoa - how long? how many?
  • Next by Date: Re: One Solution for storing ordered arrays within Core Data objects
  • Previous by thread: Re: Edit Newly Inserted Row Via Bindings
  • Next by thread: Re: Edit Newly Inserted Row Via Bindings
  • Index(es):
    • Date
    • Thread