Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!eos!shelby!polya!ali From: ali@polya.Stanford.EDU (Ali T. Ozer) Newsgroups: comp.sys.next Subject: Re: WorkSpace like ... Message-ID: <10256@polya.Stanford.EDU> Date: 26 Jun 89 06:53:52 GMT References: <133000004@silver> Sender: Ali T. Ozer Reply-To: aozer@NeXT.com (Ali Ozer) Organization: . Lines: 19 In article <133000004@silver> tsui@silver.bacs.indiana.edu writes: >Does anyone know how workspace implemets view by icon? Is it a scrollview >with its contentview set to matrix of cells that are associated with icons? >I am trying to write something that allows me to drag an icon from it to >another window(same application), virtually like you drag a icon(TIFF) from >work space to the demo program icon. Simply register a window from your application with the Workspace Manager and you will get a message whenever the user drags a file icon from a Workspace Manager window to your window. Take a look at the DrawDocument class in the source for the Draw program, provided in /NextDeveloper/Examples/Draw. As you might guess, this indicates that you need not be concerned with the exact implementation of the Workspace icon view window. (It probably is a ScrollView whose docView is a custom view...) Ali Ozer, NeXT Developer Support aozer@NeXT.com