• 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: selectionShouldChangeInTableView example?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: selectionShouldChangeInTableView example?


  • Subject: Re: selectionShouldChangeInTableView example?
  • From: David Bainbridge <email@hidden>
  • Date: Thu, 8 Jul 2004 17:43:49 -0500

Thanks.. but this method is not called either unless I have to set another delegate besides the one for the tableview that I am missing.. My other delegate methods are called for the tableView but none that allows me to verify the textfield in the tableview before it calls setObjectValue. I suppose I could just not set the object in setObjectValue..

On Jul 7, 2004, at 2:32 PM, Todd Ransom wrote:

I think you want this method instead:

- (BOOL)control:(NSControl *)control textShouldEndEditing:(NSText
*)fieldEditor

TR

On Jul 7, 2004, at 1:05 PM, David Bainbridge wrote:

Does anyone have an example using the delegate method:
- (BOOL)selectionShouldChangeInTableView:(NSTableView *)aTableView

I am unable to figure out how to get the current text being editing in
the selected table cell to verify if it is acceptable when this method
is called. I've tried [aTableView currentEditor] which returns nil and
[aTableView stringValue] which returns empty string.
Thanks for any help..
_______________________________________________
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.
_______________________________________________
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.
_______________________________________________
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: selectionShouldChangeInTableView example?
      • From: Todd Ransom <email@hidden>
References: 
 >selectionShouldChangeInTableView example? (From: David Bainbridge <email@hidden>)
 >Re: selectionShouldChangeInTableView example? (From: Todd Ransom <email@hidden>)

  • Prev by Date: Re: Bring App to Front
  • Next by Date: Re: Bring App to Front
  • Previous by thread: Re: selectionShouldChangeInTableView example?
  • Next by thread: Re: selectionShouldChangeInTableView example?
  • Index(es):
    • Date
    • Thread