• 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 and End Editing notifications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView and End Editing notifications


  • Subject: NSTableView and End Editing notifications
  • From: "Paul Verity" <email@hidden>
  • Date: Thu, 03 Aug 2006 14:58:22 +0100

As a newbie I'm trying to get my head around the Cocoa API so I can develop a GUI; I have a TableView and a button that will add new records to the table each time it's clicked. I can edit the values in the table view, but I don't want the next row in the view to be automatically selected when I end editing (hit Return). I used some code that meant subclassing NSTableView and overriding:

- (void)textDidEndEditing:(NSNotification *)notification;

I later saw that I could register to NSControlTextDidEndEditingNotification's. So I then tried to implement the same thing - thinking that I could provide the behaviour I wanted for all tables in my application and without having to subclass NSTableView. I done this mostly to set myself an exercise, but I can't get it working. Is what I'm trying to achieve by using notifications, possible?

Paul

_________________________________________________________________
Windows LiveĀ™ Messenger has arrived. Click here to download it for free! http://imagine-msn.com/messenger/launch80/?locale=en-gb


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTableView and End Editing notifications
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: how to use mount volume with timeout argument in AppleScript.
  • Next by Date: [Ann] Show/Hide columns in NSTableView (AMRemovableColumnsTableView)
  • Previous by thread: DRBurnsetupPanel
  • Next by thread: Re: NSTableView and End Editing notifications
  • Index(es):
    • Date
    • Thread