realbasic-plugins
[Top] [All Lists]

Re: REALnewInstance used on Custom Classes in the IDE

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: REALnewInstance used on Custom Classes in the IDE
From: Björn Eiríksson <bjorn at einhugur dot com>
Date: Sat, 14 May 2005 22:27:43 +0000
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <BEABF227 dot CA5B%vanhoek at mac dot com>

On 14.5.2005, at 22:21, Alfred Van Hoek wrote:

on 5/14/05 4:51 PM, Björn Eiríksson at bjorn at einhugur dot com wrote:

No that is not possible, the unit test that he used is the unit test
from me. (Which passed back then for him in his internal copy of 2005)

hmm, you call REALnewInstance, right?, I was talking about an EntryPoint,
which might be different in Jon's case,


This is the code that runs in the unit test that I sent to Jonathan

ControlData(TreeView, instance, TreeViewData, me);

DebugStr("\pIn: TreeView_CreateRootNode");

me->m_SelectedNodeIndex  = -1;

if(!me->m_SelectedNodes)
{
        DebugStr("\pIn: TreeView_CreateRootNode2");

        me->m_SelectedNodes = REALnewInstance("ObjectCollection");
                
        if(!me->m_SelectedNodes)
                DebugStr("\pCreate ObjectCollection failed");
        else
                DebugStr("\pCreate ObjectCollection was success");
                
        LoadObjectCollectionEntries(me->m_SelectedNodes);
}

(This code is called from the Open event of the control)

I get on the console:
In: TreeView_CreateRootNode
In: TreeView_CreateRootNode2

In a internal version of 2005 Jonathan was able to get:

In: TreeView_CreateRootNode
In: TreeView_CreateRootNode2
Create ObjectCollection was success
........ and some further messages further down the code.

Bottom line is that in the versions that they have released to us then it always blows on the
REALnewInstance.


--
______________________________________________________________________
Björn Eiríksson                            bjorn at einhugur dot com
Einhugur Software
http://www.einhugur.com/
______________________________________________________________________
Einhugur Software has sold its products in 47 countries world wide.
______________________________________________________________________
For support:                               support at einhugur dot com
To post on the maillist:                   einhugur at yahoogroups dot com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>