Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > NSTableView selection change issue

NSTableView selection change issue
Thread Tools
Ghoser777
Professional Poster
Join Date: Dec 2000
Location: Chicago, Illinois
Status: Offline
Reply With Quote
May 31, 2003, 03:58 PM
 
Hello all. I've got an NSTableView set up and delegate, and everything is working as I'd like except for one thing: I can't find a way to find when the edited cell changes. I looked at the NSControl delegate methods, but the closest I get is controlTextDidBeginEditing: (or something like that), which only gets called when the user types in a field, not when the cell actualyl begins editing. Does anyone have a suggestion on what to do?

Thanks,
Matt Fahrenbacher
     
seb2
Grizzled Veteran
Join Date: Feb 2001
Location: Germany
Status: Offline
Reply With Quote
May 31, 2003, 04:38 PM
 
Just an idea... what about overriding NSWindow's fieldEditor:forObject: ?
That would have to be called before the editing starts.
     
Uncle Skeleton
Addicted to MacNN
Join Date: Nov 2002
Location: Rockville, MD
Status: Offline
Reply With Quote
May 31, 2003, 05:48 PM
 
what about -tableView:shouldEditTableColumn:Row:
that ought to be called just before any cell is edited
     
Ghoser777  (op)
Professional Poster
Join Date: Dec 2000
Location: Chicago, Illinois
Status: Offline
Reply With Quote
May 31, 2003, 06:37 PM
 
Originally posted by Uncle Skeleton:
what about -tableView:shouldEditTableColumn:Row:
that ought to be called just before any cell is edited
Wow... how blind am I?

I wish all my problems were this easy... but I bet under the right light most of them are

Thanks,
Matt Fahrenbacher
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 12:54 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,