File:  [NeXTSTEP 3.3 examples] / Examples / EnterpriseObjects / SHLExamples / Sorting / SlidingMatrix.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:48:53 2018 UTC (8 years, 1 month ago) by root
Branches: NeXT, MAIN
CVS tags: NeXTSTEP33, HEAD
Sample Programs from NeXSTEP 3.3

/*--------------------------------------------------------------------------
 *
 * 	You may freely copy, distribute, and reuse the code in this example.
 * 	SHL Systemhouse disclaims any warranty of any kind, expressed or  
 *	implied, as to its fitness for any particular use.
 *
 *
 *	SlidingMatrix
 *
 *	Inherits From:		Matrix
 *
 *	Conforms To:		None.
 *
 *	Declared In:		SlidingMatrix.h
 *
 *	Class Description
 *
 *		This is an adaption of Thomas Burkholder's Ranker class found
 *		in NeXT's MiniExamples. I have modified it to support its usage
 *		in custom IB connectors (added delegate notification when a
 *		row change takes place,  reworked row exchange).
 *
 *
 *------------------------------------------------------------------------*/
#import <appkit/appkit.h>




@interface SlidingMatrix : Matrix
{
	id	delegate;
}


@end



/*--------------------------------------------------------------------------
 *
 *	SlidingMatrixDelegate
 *
 *	Category Of:		Object
 *
 *	Declared In:		SlidingMatrix.h
 *
 *	Category Description
 *
 *		�description�
 *
 *
 *------------------------------------------------------------------------*/

@interface Object (SlidingMatrixDelegate)

- (BOOL) slidingMatrix: sender  willSlideFromRow: (int) sourceRow;
- (BOOL) slidingMatrix: sender  willSlideToRow: (int) destinationRow;
- slidingMatrix: sender  didSlideFromRow: (int) sourceRow 
			toRow: (int) destinationRow;

@end


unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.