[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using cursors from resources -- answer



In article <9312101616.AB01697@fuchsia.uchicago.edu> Tom McDougal, 
mcdougal@cs.uchicago.edu writes:
>Suppose I use GET-RESOURCE to load a "CURS" resource.  What is the
standard
>way to get access to that cursor (in a form that view-cursor might
return)?


Thanks to Chip Cleary at ILS for help w/ this.  My error was in failing to
keep the resource file open throughout the use of the cursor.

The following works, using get-resource as defined in resources.lisp.

  (setq *my-cursor* (get-resource "CURS" <name-or-number>))
  
  (defmethod view-cursor ((self my-view) p)
    (declare (ignore p))
    *my-cursor*)


-----------------------------------------------------------
Tom McDougal   mcdougal@cs.uchicago.edu   +1 (312) 702-9923
     University of Chicago Artificial Intelligence