Shared variable definition puzzle

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Shared variable definition puzzle

Steve Aldred-3
I'm seeing weird behaviour in a 7.5NC image defining shared variables.

I create a class, ensure class is selected in RB, use menu Class | New |
Shared Variable  and define my variable. Shared variable ends up on the
namespace not on the class.

How do I get the shared variable where I want it?

Vanilla 7.5NC image with the following  distribution parcels loaded:
LessProgress
StoreForPostgresSQL
SeasideForWebToolKit
SeasideTestingForWebToolKit
RBSUnitExtensions
AutoComplete
ThreePaneSelectorsBrowser

TIA
Steve


Reply | Threaded
Open this post in threaded view
|

Re: Shared variable definition puzzle

Travis Griggs-3
On Feb 7, 2008, at 2:51 PM, Steve Aldred wrote:

> I'm seeing weird behaviour in a 7.5NC image defining shared variables.
>
> I create a class, ensure class is selected in RB, use menu Class |  
> New | Shared Variable  and define my variable. Shared variable ends  
> up on the namespace not on the class.
>
> How do I get the shared variable where I want it?
>
> Vanilla 7.5NC image with the following  distribution parcels loaded:
> LessProgress
> StoreForPostgresSQL
> SeasideForWebToolKit
> SeasideTestingForWebToolKit
> RBSUnitExtensions
> AutoComplete
> ThreePaneSelectorsBrowser


The dialog only works for making shares in Namespaces. This has been  
improved in 7.6 so it works for classes and namespaces. The other way,  
which works in both versions, is to select the class, select the  
"Shared Variable" tab in the top right navigator, create a category,  
and then you get a template for creating/editing shares.

--
Travis Griggs
Objologist
"It's [a spec] _the_ single worst way to write software, because it by  
definition means that the software was written to match theory, not  
reality" - Linus Torvalds


Reply | Threaded
Open this post in threaded view
|

Re: Shared variable definition puzzle

Steve Aldred-3
Travis Griggs wrote:
>>
>> I create a class, ensure class is selected in RB, use menu Class |
>> New | Shared Variable  and define my variable. Shared variable ends
>> up on the namespace not on the class.
>> ...
>
> The dialog only works for making shares in Namespaces. This has been
> improved in 7.6 so it works for classes and namespaces.

A bit of consistency will be nice :)

> The other way, which works in both versions, is to select the class,
> select the "Shared Variable" tab in the top right navigator, create a
> category, and then you get a template for creating/editing shares.

Oh, of course its a template. I must have done that in the past and
forgotten as I don't use globals much. Its funny I'd happily overtype a
class definition like that, must be the two panes makes it seem different.

Thanks Travis (and Martin privately).