<div dir="ltr"><div><div><div><div>I&#39;ve definitely made changes since then. My current implementation of #date: looks like this:<br></div><br>date: aDate<br><br>    | recompute |<br>    recompute := date isNil or: [date month ~= aDate month].<br>
    date := aDate.<br>    recompute<br>        ifTrue: [self computeDays].<br>    self triggerEvent: #dateChanged.<br>    self changed: #dateChanged<br><br></div>So the event stuff got added after I posted that to the list.<br>
<br></div>If someone can walk me through it or point me to a page that describes how to do it, I can update the inbox with my current code.<br><br></div><div>I&#39;m not sure why date needs to be lazy-initialized in the getter, since the instance creation methods #on: and #openOn: both set it to the date you pass in.<br>
</div><div><br></div>- Jon<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 21, 2013 at 6:36 AM, Sean P. DeNigris <span dir="ltr">&lt;<a href="mailto:sean@clipperadams.com" target="_blank">sean@clipperadams.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Jon Hylands wrote<br>
<div class="im">&gt;     calendarMorph<br>
&gt;         when: #dateChanged send: #calendarDateChanged to: self<br>
<br>
</div>Have you made improvements since you posted the .st to this thread? Sending<br>
when:send:to: doesn&#39;t seem to have any effect for me (i.e. the handler is<br>
never activated). I&#39;m attaching (to Nabble) a little class that shows the<br>
situation...<br>
<br>
CalendarTester.st &lt;<a href="http://forum.world.st/file/n4664401/CalendarTester.st" target="_blank">http://forum.world.st/file/n4664401/CalendarTester.st</a>&gt;<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://forum.world.st/Calendar-Chooser-tp3980015p4664401.html" target="_blank">http://forum.world.st/Calendar-Chooser-tp3980015p4664401.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the Squeak - Dev mailing list archive at Nabble.com.<br>
<br>
</div></div></blockquote></div><br></div>