bice@hbo.UUCP (Brent A. Bice) (05/08/90)
Is it just me, or do the selection services under NeWS 2.0 behave
differently under NeWS 2.0??? According to the 2.0 manual, if I make a
request-dict (a dictionary containing /SelectionResponder, /Canvas, etc...), and
add to it some of my own data (ie, /MyJunk (This is a test) def) and then
give it and a rank to setselection, I should be able to do a getselection on the
same rank, and the dictionary that getselection passes back should have /MyJunk
in it. Under 1.1, this is the case, but under 2.0 it seems to make a dictionary
called /SelInfo, and THAT dictionary is the request-dict I passed to setselection
----------------------------
psh
Welcome to X11/NeWS Version 1.0.1
/MyJunk clearselection
dictbegin
/SelectionHolder currentprocess def
Canvas currentcanvas def
SelectionResponder null def
/MyJunk (This is a test of my junk) def
dictend /MyJunk setselection pstack
Empty stack
/MyJunk getselection pstack
dict[
/Holder: canvas(0x1c6000,1152x900,root,parent)
/Level: 1
/PendingDelete?: true
/Pin: /AtPoint
/Preview?: true
/Rank: /MyJunk
/Registered?: true
/Style: /Default
/Time: 0
/SelInfo: dictionary[5/5000]
/ParentDictArray: dictionary[10/5000]
]
/SelInfo get pstack
dict[
/SelectionHolder: process(0x2ae088, 'sin client', runnable, `pstack')
/Canvas: canvas(0x1c6000,1152x900,root,parent)
/SelectionResponder: null
/MyJunk: (This is a test of my junk)
/Rank: /MyJunk
]
It seems ta me that if it were to be at all compatible with 1.1 then the following
should work:
dictbegin
/MyJunk (This is a test) def
dictend /Myrank setselection
/Myrank getselection /MyJunk get
The 2.0 manual oughta at least tell us somethin' about SelInfo being in there and
how the new setselection/getselection stuff is going to behave.
Has anyone else run across any other strange things with the selection services
under 2.0?? Is there somethin' I'm missing?