2005-07-01 20:54:03 +00:00
|
|
|
/* Controller
|
|
|
|
|
|
|
|
Copyright (C) 2005 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
This file is part of the GNU Objective C User Interface library.
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
2007-10-29 21:16:17 +00:00
|
|
|
modify it under the terms of the GNU Lesser General Public
|
2005-07-01 20:54:03 +00:00
|
|
|
License as published by the Free Software Foundation; either
|
2008-06-10 04:01:49 +00:00
|
|
|
version 2 of the License, or (at your option) any later version.
|
2007-10-29 21:16:17 +00:00
|
|
|
|
2005-07-01 20:54:03 +00:00
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2007-10-29 21:16:17 +00:00
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Lesser General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
License along with this library; see the file COPYING.LIB.
|
|
|
|
If not, see <http://www.gnu.org/licenses/> or write to the
|
|
|
|
Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
|
|
|
Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
2003-03-24 18:15:56 +00:00
|
|
|
#include "Controller.h"
|
1997-12-04 01:58:57 +00:00
|
|
|
|
|
|
|
@implementation Controller
|
|
|
|
|
|
|
|
- (void)buttonPressed:(id)sender
|
|
|
|
{
|
|
|
|
NSString* text
|
|
|
|
= [NSString stringWithFormat:@"\"%@\" button pressed", [sender title]];
|
|
|
|
|
|
|
|
[textField setStringValue:text];
|
|
|
|
}
|
|
|
|
|
1998-01-16 00:57:21 +00:00
|
|
|
- (id)window
|
|
|
|
{
|
|
|
|
return [textField window];
|
|
|
|
}
|
|
|
|
|
1997-12-04 01:58:57 +00:00
|
|
|
@end
|