NSTableView and End Editing notifications
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