[Newbies] Re: Sharing a Singleton for read-only access to data

2016-05-12 Thread Stephan Eggermont
Just a small flaw, easy to fix. You can just subclass the session class and add the filter data to that, or you can add user management. In QcMagritte we use announcements and user management, so there we have WASession subclass: #QCSession instanceVariableNames: 'announcer user' classV

Re: [Newbies] Sharing a Singleton for read-only access to data

2016-05-12 Thread Tim Johnson
Hi Ben, Good ideas. I think your solution is the way to go. Throwing out the XYZRecords instances when I am done, rather than resetting filters, is a good idea. Keeping the data as a class variable is also a great tip. I was keeping the "Singleton" instance as the class variable instead of

Re: [Newbies] Sharing a Singleton for read-only access to data

2016-05-12 Thread Ben Coman
Hi Tim, I'm not clear on which of your methods are instance-side or class-side. Can you clarify this using the form.. XYZRecords >> filterByYear -- for instance side XYZRecords class >> filterByYear -- for class side I'm not overly familiar with Seaside or Design Pattern architectures, but it s

[Newbies] re: Need a local tutor for Squeak

2016-05-12 Thread Craig Latta
Hi Joe-- > I need a local person to help me with Squeak Smalltalk. I live in the > Western suburbs of Chicago, in Downers Grove. I want someone to show > me all the things I am missing and to help me use the tools more > effectively. > > I am thinking we could meet at a coffee shop once a week

[Newbies] Sharing a Singleton for read-only access to data

2016-05-12 Thread Tim Johnson
Hello Squeakers, It is cool that we have this forum for asking these kinds of questions. -- TL;DR -- I learned I probably shouldn't subclass a singleton even though it seemed so easy; I wonder instead how to design my controller properly in an MVC paradigm; should I learn about Factory method

Re: [Newbies] new and initialize

2016-05-12 Thread Tobias Pape
On 12.05.2016, at 01:50, Joseph Alotta wrote: > Sorry, it doesn’t work on the Mac. The window gets black and then redraws. > I think maybe it means “refresh”. > > Sincerely, > > JOe. Joe, which version of Squeak are you using? 5.0 does not yet have this shortcut but the current developm