Glamour detecting changes?

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

Glamour detecting changes?

Daniel Lyons
I have a pretty simple class and I'm using a GLMFinder to browse its contents. If I make changes to the instance I'm browsing, it doesn't look like Glamour detects the changes and refreshes. I'm using self changed: #property in the setter. If I navigate backwards and unselect, and re-browse into it, it sees the changes. What should I do?

Thanks again!

Daniel Lyons




Reply | Threaded
Open this post in threaded view
|

Re: Glamour detecting changes?

Tudor Girba-2
Could you provide the code snippet you use for building the finder browser?

Cheers,
Doru

On Sun, Dec 21, 2014 at 3:46 AM, Daniel Lyons <[hidden email]> wrote:
I have a pretty simple class and I'm using a GLMFinder to browse its contents. If I make changes to the instance I'm browsing, it doesn't look like Glamour detects the changes and refreshes. I'm using self changed: #property in the setter. If I navigate backwards and unselect, and re-browse into it, it sees the changes. What should I do?

Thanks again!

Daniel Lyons







--

"Every thing has its own flow"
Reply | Threaded
Open this post in threaded view
|

Re: Glamour detecting changes?

Daniel Lyons
Doru,

buildBrowser
browser := GLMFinder new.
browser show: [ :a |
a list 
display: #children;
format: #title ].
browser title: 'Project Browser'

And then #title: looks like this:

title: anObject
title := anObject.
self changed: #title

On Dec 21, 2014, at 12:56 PM, Tudor Girba <[hidden email]> wrote:

Could you provide the code snippet you use for building the finder browser?

Cheers,
Doru

On Sun, Dec 21, 2014 at 3:46 AM, Daniel Lyons <[hidden email]> wrote:
I have a pretty simple class and I'm using a GLMFinder to browse its contents. If I make changes to the instance I'm browsing, it doesn't look like Glamour detects the changes and refreshes. I'm using self changed: #property in the setter. If I navigate backwards and unselect, and re-browse into it, it sees the changes. What should I do?

Thanks again!

Daniel Lyons







--

"Every thing has its own flow"

— 
Daniel Lyons



Reply | Threaded
Open this post in threaded view
|

Re: Glamour detecting changes?

Tudor Girba-2
Hi,

You should use announcements. See here some explanations:

And a live example can be found at:
GLMBasicExamples>>updateableBrowser

Cheers,
Doru



On Sun, Dec 21, 2014 at 10:36 PM, Daniel Lyons <[hidden email]> wrote:
Doru,

buildBrowser
browser := GLMFinder new.
browser show: [ :a |
a list 
display: #children;
format: #title ].
browser title: 'Project Browser'

And then #title: looks like this:

title: anObject
title := anObject.
self changed: #title

On Dec 21, 2014, at 12:56 PM, Tudor Girba <[hidden email]> wrote:

Could you provide the code snippet you use for building the finder browser?

Cheers,
Doru

On Sun, Dec 21, 2014 at 3:46 AM, Daniel Lyons <[hidden email]> wrote:
I have a pretty simple class and I'm using a GLMFinder to browse its contents. If I make changes to the instance I'm browsing, it doesn't look like Glamour detects the changes and refreshes. I'm using self changed: #property in the setter. If I navigate backwards and unselect, and re-browse into it, it sees the changes. What should I do?

Thanks again!

Daniel Lyons







--

"Every thing has its own flow"

— 
Daniel Lyons






--

"Every thing has its own flow"