Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6376951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:48:31+00:00 2026-05-25T01:48:31+00:00

​ Synopsis I want to build a custom control which displays events in a

  • 0

​

Synopsis

I want to build a custom control which displays events in a calendar.

Here is the draft:

enter image description here

The Concept

  • The bottom left box is vertically scrollable. The bottom right box scrollable in both directions.
  • It’s possible to move the event views around. If they come near the bounds during dragging the view auto-scrolls in that direction.
  • The scroll area is finite according to the earliest and latest event in a database or a certain maximum. But if the user continues scrolling the scroll area grows accordingly and collapses if the user scrolls back and did not create a new event.
  • This “July 2011” button at the bottom acts as scroller. If the user pulls it beyond the bounds of the scroll area, it grows accordingly.
  • The month name in the header stays always at this position until the next month moves in, so it’s a long cell which spans over the day cells of the month with a floating caption.
  • The header rows and columns are always visible.

The Question

Since I’m only slightly familiar with the capabilities of Cappuccino or Cocoa’s control classes: Where can I make direct use of Cappuccino or Cocoa classes, where is it reasonable to subclass Cappuccino/Cocoa controls and where do I have to write custom controls from scratch?

Edit: My Thoughts

I think its reasonable dividing the control with a SplitView with a vertical divider. I could use a TableView for the left header column in the left subview. And I could synchronize the vertical scrolling with what happens on the right side.

But I’m not so sure about the view on the right side. I thought about TableView but I would actually only need the cells as a background grid. Thus, I guess, it would be difficult to have two header rows and to implement the desired scrolling behavior. So the best way is probably to create a completely new custom view. But then again the question: Where is it reasonable to subclass Cappuccino resp. Cocoa controls and where do I have to write custom controls from scratch?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T01:48:32+00:00Added an answer on May 25, 2026 at 1:48 am

    For the calendar view it looks sufficiently different from a table view that it might be easier to just write it from scratch. Perhaps start with a bare CPView and draw the background in its drawRect: method, then create a CPControl subclass for the events. In its drawRect render its borders and background, or use a CPBox with setBackgroundColor:. The text is best drawn with label subviews. React to mouseDown and so on to implement drag and drop, double click events and what else you might want.

    Then put the whole calendar view in a CPScrollView. Synchronise its vertical scrolling with the scroll view on the left – use a CPTableView there. Scrolling is fairly easy with a CPScrollView: just call scrollToPoint: on the content view. You will need to expand the content view size dynamically to allow ‘infinite’ scrolling. Maybe simply always make the content view size the minimum of the size of its events and the current scroll position + X (the X giving the user some distance to scroll before you have to resize again).

    In a nutshell, subclass CPView and CPControl – CPView when there is no interaction, and CPControl when there is.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my code: $(function() { $(#page-flip).mouseover(function() { $(.box).toggleClass(box-change); $(.films).toggleClass(films-change); $(.synopsis).toggleClass(synopsis-change); }); }); It
Here is a synopsis of my code which is a moderately complex WinForms GUI.
Is there an OSS which can compress a text to a synopsis? My goal
I want to build an application that will allow the user to upload a
Okay, so here's what I want to do (NOTE: I'm stil new to PHP):
Suggestions other that dumping IE6 that is... I can't control that :) Quick synopsis
Simple synopsis: I have a program which needs authentication from user to get access
Synopsis: If you center a resizable element and expand it left/right, it has the
I have following pod which I used with getopt::long: =head1 SYNOPSIS foo [OPTION]... [URL]...
Here is my code thus far: $(document).ready(function(){ $(.KD).click(function(){ $(p).load('KD.html'); $(.video).load('KDVideo.html'); $(.synopsis-change).toggleClass(synopsis); $(.synopsis).toggleClass(synopsis-change); }); });

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.