image
image

Go Back   macosx.com > Design, Media, Programming & Scripting > Software Programming & Web Scripting

Reply
 
Thread Tools
  #1  
Old February 16th, 2003, 08:38 AM
Registered User
 
Join Date: Dec 2002
Location: cincinnati, OH
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
chocolate is on a distinguished road
Editing text in NSTableView - How?

Greetings, all.

I'm having some difficulty with a tableView. The problem goes like this: I have a single column table, and I want to be able to edit the names in the cells.

Unfortunately, what it does is allow me to type into the cell, and then when I redisplay the data it looks to my data source, which of course still contains the old data. How do I move the string in the cell I just edited into my datasource?

I have one class that is both the datasource and delegate for this table.

TIA
chocolate
Reply With Quote
  #2  
Old February 20th, 2003, 09:24 PM
Registered User
 
Join Date: Feb 2003
Location: Massachusetts
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
browncat is on a distinguished road
If your data-source implements tableView:setObjectValue:forTableColumn:row: then you should be all set -- Cocoa should call it when you're done editing.

-- browncat
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with HOME & END usage in text editing... NinoAvila Mac OS X System & Mac Software 4 April 10th, 2003 03:56 AM
Best text Printer? callieX Apple News, Rumors & Discussion 2 February 23rd, 2002 08:34 PM
How to set the AA threshold of Cocoa text strobe Mac OS X System & Mac Software 0 April 25th, 2001 01:33 AM
anyone know about basic text editing is OS X 10.0 (html)? bolindilly Mac OS X System & Mac Software 9 April 4th, 2001 05:49 PM
Editing plain old text files Allan Crowson Mac OS X System & Mac Software 6 December 4th, 2000 11:19 AM


All times are GMT -5. The time now is 06:27 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.