[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using cursors from resources -- answer
- To: info-mcl@ministry.cambridge.apple.com
- Subject: Re: using cursors from resources -- answer
- From: Tom McDougal <mcdougal@cs.uchicago.edu>
- Date: Mon, 13 Dec 1993 17:13:55 GMT
- Newsgroups: comp.lang.lisp.mcl
- Organization: Univ. of Chicago Computer Science
- References: <9312101616.AB01697@fuchsia.uchicago.edu>
- Sender: news@bluebird.uchicago.edu (News System)
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