comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Object Madness or Restoring Nightmares
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Object Madness or Restoring Nightmares [message #38410 is a reply to message #38368] Thu, 04 March 2004 09:08 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
James Kuyper writes:

> This points to a possible approach: can you set it so a given object has
> no parent? If so, it may also be possible to "orphan" an object, cutting
> it off from it's parent. That should allow you to save the object,
> without having to save all of it's ancestors.

Well, I thought about this, but it is slightly more
complicated than I have described so far. Unlike widgets,
for example, our objects can have multiple parents. (Our
notion of a "parent" is "an object that cares about you".)

You can imagine, for example, that you want an image
displayed in three different draw widgets. Maybe
a zoomed image, a normal image, and a thumbnail image.
Each of the draw widgets would be a "parent" to the
image object, because they care about the image object.

In our system, we are careful not to destroy an object
unless it's an orphan, and then we ruthlessly slash its
head off. (I wouldn't want to live in this world we
have created!) So, to get back to your question. To remove
all the parents of an object destroys the object in
our system. Hence, there is nothing to save. :-(

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: HDF5 and IDL
Next Topic: Re: how to make a mask from a picture and how to put...

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 22:18:15 PDT 2025

Total time taken to generate the page: 1.20248 seconds