Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!spool.mu.edu!samsung!dali.cs.montana.edu!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!wuarchive!csus.edu!ucdavis!csusac!unify!openlook!openlook-request From: fgreco@govt.shearson.com (Frank Greco) Newsgroups: comp.windows.open-look Subject: xview and xv_key_data Message-ID: <4x8vhx3@openlook.Unify.Com> Date: 19 Feb 91 23:31:13 GMT Lines: 23 The XVPM says (pg 170) that when you use XV_KEY_DATA, a *unique* key is required. How *unique* must this be? Obviously, keys must be at least unique when you attach more than one key to a particular XView object. But it seems like this is the only restriction. In some tests I've made, I've attached different chunks of data to three different objects (eg, textitems) all using the same key. It appears to work, but I'd like to be sure. Must all keys, regardless of the type of object it is attached to, be unique? Since I'm attaching data to a whole slew of objects, I'd rather not keep a separate data structure around just to hold object ptrs and XV_KEY_DATA keys (and of course, you also need a proc to find a key given the obj ptr). Thanks all, Frank G.