Article View: comp.windows.interviews
Article #11SelectionManager
From: Doron Shalmon
Date: Wed, 28 Oct 1992 00:54
Date: Wed, 28 Oct 1992 00:54
34 lines
2187 bytes
2187 bytes
All methods relating to requesting the value of the primary
selection to do a paste operation are currently unimplemented
(SelectionManager::retrieve, SelectionManagerRep::notify, etc.).
I subclassed from SelectionManager and SelectionManagerRep
and defined the necessary methods, and got it all to work but
only after MAJOR hacking to get my classes in place (I had to
get my SelectionManager subclass to create my SelectionManagerRep
subclass instead of the default, and I had to get Window to
call notify on my subclass since notify is not virtual, etc).
All this because we cannot afford to modify the InterViews
source directly (we don't want to have to make modifications
with every release), so I have subclass to add the functionality.
If all the missing code will not be in place by IV3.1-final, could you
somehow make it possible for us to do it ourselves? Some
suggestions include making the rep pointer protected so
that subclasses can replace the rep with another; making
SelectionManagerRep::notify (and request) be virtual; and
provide some way to add a SelectionManager subclass to
Display's SelectionList.
-- Doron
===========================================================================
Doron Shalmon Internet doron@yogi.leis.bellcore.com
444 Hoes Lane (RRC 4B-1125) CompuServe 72330,3307
Piscataway, NJ 08854 VOICE (908) 699-8133
FAX (908) 336-2982
_ _ _ _ _ _
|_> |_ | | | | | |_> |_ "All opinions expressed are mine, and do not
|_> |_ |_ |_ |_ |_| | \ |_ necessarily represent those of my employer,
Bell Communications Research (Bellcore)"
Bell Communications Research
Technical Details
Message-ID:
<1992Oct28.005416.24305@walter.bellcore.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!att-out!walter!newsShow Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!att-out!walter!news From: doron@leis.bellcore.com (Doron Shalmon) Subject: SelectionManager Message-ID: <1992Oct28.005416.24305@walter.bellcore.com> Followup-To: comp.windows.interviews Sender: news@walter.bellcore.com Nntp-Posting-Host: 128.96.148.248 Organization: Bellcore Date: Wed, 28 Oct 92 00:54:16 GMT Lines: 34