• 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: Detecting editing in NSTableView cells?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting editing in NSTableView cells?


  • Subject: Re: Detecting editing in NSTableView cells?
  • From: Brendan Younger <email@hidden>
  • Date: Sun, 17 Jun 2001 10:40:37 -0500

1. Is this the correct course of action?
yes.

2. How do I ask textObject which column and row of the table it's in? Or
should I just use selectedColumn and selectedRow?
selectedColumn and selectedRow will be the edited cell since the delegate method is invoked before focus changes

3. I presume that my table delegate is the correct place to implement the
textShouldEndEditing method? The method is listed under "Text delegate
methods" in NSTableView's documentation, and I'm not sure whether it will be
automatically found in my table delegate, or whether I need to specify
something in Interface Builder.
the delegate is indeed the correct place. don't worry about "advertising" the fact that the method is implemented, if it is, it will automatically be called. (One of the many great things about ObjC.)

Brendan Younger


References: 
 >Detecting editing in NSTableView cells? (From: Matt Ridley <email@hidden>)

  • Prev by Date: Core Foundation Framework
  • Next by Date: Re: How to build a "System Preference" Panel
  • Previous by thread: Detecting editing in NSTableView cells?
  • Next by thread: Core Foundation Framework
  • Index(es):
    • Date
    • Thread