Cheers
Fred
/*
Tester for ImageView
Copyright (C) 2004 Free Software Foundation, Inc.
Written by: Fred Kiefer <FredKiefer@gmx.de>
Created: January 2004
This file is part of the GNUstep Base Library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111 USA.
*/
#include <Foundation/NSAutoreleasePool.h>
#include <Foundation/NSException.h>
#include <Foundation/NSString.h>
#include <AppKit/NSApplication.h>
#include <AppKit/NSImageView.h>
#include <math.h>
int main (int argc, const char *argv[])
{
CREATE_AUTORELEASE_POOL(pool);
NSImageView *view;
NSImageCell *cell;
[NSApplication sharedApplication];
view = [NSImageView new];
cell =[view cell];
NS_DURING
{
[view setTarget: view];
NSLog(@"NSImageView does implement setTarget:");
}
NS_HANDLER
{
NSLog(@"NSImageView does not implement setTarget:");
}
NS_ENDHANDLER
NS_DURING
{
[cell setTarget: view];
NSLog(@"NSImageCell does implement setTarget:");
}
NS_HANDLER
{
NSLog(@"NSImageCell does not implement setTarget:");
}
NS_ENDHANDLER
RELEASE(pool);
return 0;
}
_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
http://mail.gnu.org/mailman/listinfo/discuss-gnustep