ftp.nice.ch/pub/next/tools/frontends/UNIX-HatersTool.0.11.NI.bs.tar.gz#/UNIX-HatersTool.0.11.NI.bs/MiscSwapKitPalette.BETA/MiscSwapKit.subproj/MiscSwapViewByMatrix.m

This is MiscSwapViewByMatrix.m in view mode; [Download] [Up]

{\rtf0\ansi{\fonttbl\f0\fmodern Courier;}
\paperw11760
\paperh7800
\margl120
\margr120
\pard\tx560\tx1140\tx1680\tx2240\tx2800\tx3440\tx3920\tx4480\tx5040\tx11520\f0\b0\i0\ulnone\fs24\fc0\cf0 /* MiscSwapViewByMatrix.m				 \
 *\
 * This is a SwapView that can handle swapping triggered by objects inside\
 * a matrix. Sorry no multiple buttons inside a matrix. 
\b (Actually, you can\
 * do multiple buttons.. see test.nib)
\b0 \
 *\
 * For more interface-info see the header file. More in depth information\
 * can be found here in the source-code.\
 *\
 * Written by: 		Thomas Engel\
 * Created:    		24.01.1994 (Copyleft)\
 * Last modified: 	25.09.1994\
 *\
 * 
\b Changes are in bold black.
\b0 \
 */\
\
#import <misckit/misckit.h>\
\
@implementation MiscSwapViewByMatrix\
\
- swapContentView:sender\
\{\

\b 	// The trigger (sender) can either be the matrix (on behalf of one \
	// of it's cells) or you one of the cells itself. Therefore we have \
	// to check.\
	\
	if ([sender isKindOf: [Cell class] ])\
		return [super swapContentView: sender];\

\b0 	else\
		return [super swapContentView:[sender selectedCell]];\
\}\
\
@end\
\
/*\
 * History: 25.09.94 Adjusted swapContentView: to work with either the\
 *					 matrix or cell as the trigger.\
 *\
 *			24.02.94 Made it conform to the new swapView methods.\
 *\
 *			24.01.94 Made it MiscSwap conform.\
 *\
 *			08.01.94 Derived from the basic swapController to serve the need\
 *					 to handle different buttons inside a scrollable matrix.\
 *\
 *\
 * Bugs: Not here!\
 */
}

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.