Calendar Widget

34 views
Skip to first unread message
Message has been deleted

Bruno Ronchetti

unread,
Nov 6, 2009, 2:18:31 PM11/6/09
to Cappuccino & Objective-J
Hi everyone,

I have just finished my own version of a Calendar widget. It is based
on the CalendarView by CodingMammoth (which can be found in the Code
Snippets http://wiki.github.com/280north/cappuccino/code-snippets )
and adds a couple of functionalities.

I have posted it here: http://github.com/RonchettiAssociati/WeKeepTrack
in the hope that it might help someone.

I am a beginner with Cappuccino, with Javascript, with OOProgramming,
with git and with pretty much everything else. Your comments and
critique are welcome and will be greatly appreciated.

And by the way: Cappuccino is really great
Regards. Bruno.

Maz

unread,
Nov 6, 2009, 8:58:59 PM11/6/09
to Cappuccino & Objective-J
A few things that I noticed. Number one, all of the files have "copy"
in their names. Git is not intended to be an upload system (though it
can be used as one) so you shouldn't be copying files all over the
place to use it. Also, the background color is too light for the white
background of the page and the white text of the numbers. Lastly, many
of the buttons took a few seconds to respond (it might be because I'm
testing it on a mac from 2005). But anyway, you should have a loading
icon. Look into CPSpinner (search for it in this google group).
However, all in all, it looks pretty cool.

Bruno Ronchetti

unread,
Nov 8, 2009, 2:18:03 AM11/8/09
to Cappuccino & Objective-J
Thanks Maz,

for taking the time to look at it and for the feedback.

- I will replace the files in the git repository so there is no "copy"
in the name,
- I will also work on a version in which colors and dimensions are
customizable.

Perfomance is indeed poor. I am working on a 2008 MacBook and there is
no lag, but the response is certainly not as snappy as it should be.

I think I have 2 problems:
- the mouse-over is simulated by queuing mouse-enter and -exit events.
This is because I do not really understand if it is good practice to
access the DOM directly and register a mouse-over event-handler there.
- I am building a lot of objects to tag the day-views. I am pretty
sure this can be simplified.

Meanwhile I will be studying luddep's calendar component, mentioned
here http://groups.google.com/group/objectivej/browse_thread/thread/3d612152715fc67c#,
which looks and performs much better than mine.

I guess I have a lot to learn.

Cheers and thanks again.

Bruno

Maz

unread,
Nov 8, 2009, 5:32:15 PM11/8/09
to Cappuccino & Objective-J
Regarding your use of DOM events - you don't need to do it that way
(also your accessing method is not good, if you must use the DOM
event, use the method built into CPEvent). Also, you should aim to use
the mehods built into CPEvent for getting information about the event.

On Nov 8, 2:18 am, Bruno Ronchetti <bruno.ronche...@mac.com> wrote:
> Thanks Maz,
>
> for taking the time to look at it and for the feedback.
>
> - I will replace the files in the git repository so there is no "copy"
> in the name,
> - I will also work on a version in which colors and dimensions are
> customizable.
>
> Perfomance is indeed poor. I am working on a 2008 MacBook and there is
> no lag, but the response is certainly not as snappy as it should be.
>
> I think I have 2 problems:
> - the mouse-over is simulated by queuing mouse-enter and -exit events.
> This is because I do not really understand if it is good practice to
> access the DOM directly and register a mouse-over event-handler there.
> - I am building a lot of objects to tag the day-views. I am pretty
> sure this can be simplified.
>
> Meanwhile I will be studying luddep's calendar component, mentioned
> herehttp://groups.google.com/group/objectivej/browse_thread/thread/3d6121...,
Reply all
Reply to author
Forward
0 new messages