ftp.nice.ch/pub/next/developer/resources/classes/IconView.s.tar.gz#/IconView/IconView.README

This is the README for IconView.rtf [Download] [Browse] [Up]

{\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f2\fmodern Courier;\f1\fmodern Ohlfs;}
\paperw13420
\paperh11680
\margl40
\margr120
{\colortbl\red0\green0\blue0;}
\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b\i\ul0\qc\fs48\fc0 IconView\

\fs28 (a reworking of code provided by NeXT in their 2.0 Examples) \
\
\
by Mark Onyschuk\
Plexus Software and Consulting, Toronto\
\
\
mark@plexus.beltrix.guild.org\
73700.3114@compuserve.com\
\

\ql\fs24 \
\

\b0\qc\fs28 You may freely copy, distribute, and reuse the code in this example.\
Plexus Software disclaims any warranty of any kind, expressed or  implied, as to its\
fitness for any particular use.\
\
also...\
\
Please include this file when distributing this code so that it is not mistaken for the\
original provided by NeXT.\
\
\

\ql \
IconView
\i0  is a a reworking of the 
\i IconView
\i0  object provided in NeXT's 2.0 
\i Examples
\i0  distribution. \
\
What's new in this mutation is the bundling of Speaker/Listener code with the 
\i IconView
\i0  object, a method to activate the 
\i IconView
\i0  at startup, and a delegate method to notify the 
\i IconView
\i0 's controller that an icon will be dropped into the view.\
\
 To use an 
\i IconView
\i0  in your own projects, place this code into your project directory, and drag 
\i IconView.h
\i0  into your project's 
\i Classes
\i0  suitcase.  After 
\i IconView.h
\i0  is parsed by 
\i Interface Builder
\i0 , drag a 
\i CustomView
\i0  into any window, and set its class to 
\i IconView
\i0  from the 
\i CustomView Attributes
\i0  Inspector panel.\
\
To activate the 
\i IconView
\i0 , send it a 
\b beginListening
\b0  message (this can only be done from Objective-C code).  To control whether files are accepted or rejected by the 
\i IconView
\i0 , implement an 
\b (int)willAcceptIcon:sender ok:(int*)flag
\b0  method in your 
\i IconView
\i0 's  delegate:\
\
\

\pard\tx900\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f2\fs24\fc0 - (int)willAcceptIcon:sender ok:(int*)flag\
\{\
    if(pathNamesAreOk([sender filename]))\
        *flag = YES;\
    else\
        *flag = NO;\
\
    return 0;
\f0\fs28 \
\}\

\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc0 \
\
The default behaviour of the 
\i IconView
\i0  object is to accept all dropped files.\
\
Please send all comments and flames to  
\i mark@plexus.beltrix.guild.org
\i0 .  I'm interested in hearing from you!\
\
\
Best Regards,\
Mark.\
\

}

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