• 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: tableview data retrieval
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tableview data retrieval


  • Subject: Re: tableview data retrieval
  • From: Francois Reboursier <email@hidden>
  • Date: Tue, 02 Apr 2002 17:09:37 +0200

On 4/2/02 6:22 AM, "Annie Felix" <email@hidden> wrote:

> Hi all,
>
> I have a table which is editable.On completion of text editing i require
> the data entered in the column to be captured.I am using
> NSTextDidEndEditingNotification to determine the end of text editing.
> Now how do i capture the data which i have entered.When I click enter
> which determines the end of textediting, the original value is displayed
> in the table.

There's no need to use a notification for this.

Use the following method:

- (void)tableView:(NSTableView *)tableView setObjectValue:(id)object
forTableColumn:(NSTableColumn *)column row:(int)row

It's called automatically when you hit the "Return" key.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: tableview data retrieval
      • From: "Mohammad F. Haque" <email@hidden>
References: 
 >tableview data retrieval (From: Annie Felix <email@hidden>)

  • Prev by Date: Re: Shared objects and other data
  • Next by Date: Re: Why Isn't my initWithFrame method being called?
  • Previous by thread: tableview data retrieval
  • Next by thread: Re: tableview data retrieval
  • Index(es):
    • Date
    • Thread