From: James Pendergrass <James.Pendergrass@oberlin.edu>
To: discuss-gnustep@gnu.org
Subject: NSTableView setAction: raising an exception
Date: Fri, 12 Sep 2003 11:37:32 -0400 (EDT)
Hello all,
I'm trying to build a gnustep application which relies on an NSTableView
to display some data. When the user clicks (or double clicks) on rows in
the table view, I would like to do something, so in my UI controller's
awakeFromNib I have:
[_theTableView setTarget:self];
[_theTableView setDoubleAction:@selector(rowDoubleClicked:)];
[_theTableView setAction:@selector(rowClicked:)];
Where _theTableView is an IBOutlet which is connected (using Gorm) to the
NSTableView instance. (Gorm for some reason does not see the rowClicked:
and rowDoubleClicked IBActions which are defined in the UIController.h
file, which is why I'm doing this programmatically).
The problem is that when I launch the app and it tries to load the .gorm
file, I get the exception:
Exception occured while trying to load model: attempt to set an
action in an NSCell