• 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
NSTableView in a sheet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView in a sheet


  • Subject: NSTableView in a sheet
  • From: Pete Yandell <email@hidden>
  • Date: Thu, 28 Mar 2002 17:20:41 +1100

I have a sheet containing an NSTableView, and I have the following problem:

If I'm currently editing an item in the NSTableView and I click the OK button on my sheet (which causes the normal orderOut: and endSheet: calls), the sheet closes without the tableView:setObjectValue:forTableColumn:row: method being called on my NSTableView delegate. That means that the data being edited never gets updated.

If I hit return or click outside the item being edited before pressing the OK button then everything works happily.

How do I convince the NSTableView to finish editing and submit the changes to its delegate when the sheet that contains it is closed? I tried using [myTableView validateEditing], but that seems to have no effect on an NSTableView.

Pete Yandell
http://pete.yandell.com/


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________
_______________________________________________
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: NSTableView in a sheet
      • From: Itrat Khan <email@hidden>
  • Prev by Date: Re: Verification of a bug
  • Next by Date: Problems with NSString: initWithCString
  • Previous by thread: Re: Icon Badges
  • Next by thread: Re: NSTableView in a sheet
  • Index(es):
    • Date
    • Thread