R2's got some pretty neat stuff calendar wise (^_^) You're welcome to
steal all you want.
The calendar cells default to a simple wrapper component to provide a
hyperlink which loads the day's events in an embedded list view. It
can be switched out using the rule system to provide something more
interesting (Maybe something like an SVG pie chart displaying 28% time
spent shopping groceries, 3% time spent coding, etc.)
It also has R2DDateRange classes which are basically re-implemented
NSRanges using longs/NSTimestamp. Those are used to produce calendars
with ranges instead of simple time stamps using the
R2DDateRangeGrouper subclass of ERXDateGrouper. The grouper also
accounts for different timezones as well as the date ranges (So what
might be an event today in California would list as an event yesterday
if you switch your timezone to Japan).
It has a calendar navigation bar that is a bit like an
ERXBatchNavigation bar for calendars too. That allows you to switch
between different calendar views (Day, Week, Month, Year) and the
calendar view preference is wired into ERCore's user preferences with
a custom preferences delegate. However, if you aren't using ERCore,
it simply saves the preferences in a temporary mutable dictionary
until the end of the session.
Anyway, it's sorta unfinished at the moment. I never have gotten
around to producing a day, week, or year view. I plan to file the
date range stuff as a patch/improvement for Wonder too when I'm
certain the timezone stuff is ironed out. Getting that part right was
pretty tricky, so I'd like to test it more thoroughly first.
On Jul 29, 2010, at 8:36 AM, David LeBer wrote:
> On 2010-07-29, at 3:18 AM, Anjo Krank wrote:
>> I never ended up using this page, but my guess is that you use the
>> sorting rules, of which the first sorter must be a date key. Also
>> you may need to override/fix selectAction() with something
>> Cheers, Anjo
> I don't use that page either.
> So it looks like ERMODCalendarPage is an untested copy of an unused
> Sweet. I love it when a plan comes together...
>> Am 29.07.2010 um 02:07 schrieb David Holt:
>>> Hi all,
>>> I can't find documentation on how to get a calendar to load in
>>> D2W. I am using the following rules:
>>> Which results in:
>>> What rules do I need to populate the list and make clickable dates
>>> in the ERXMonthView?
> David LeBer
> Codeferous Software
> 'co-def-er-ous' adj. Literally 'code-bearing'
> site: http://codeferous.com
> blog: http://davidleber.net
> profile: http://www.linkedin.com/in/davidleber
> twitter: http://twitter.com/rebeld
> Toronto Area Cocoa / WebObjects developers group:
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> Wonder-disc mailing list