Welcome, Guest
Username Password: Remember me

Altering the standard DATE field
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Altering the standard DATE field

Altering the standard DATE field 1 year, 8 months ago #1

I was wondering if it is possible to change the standard date field to something that looks like the attached pix. I would like the ability to display selections as shown:
- Today
- Tomorrow
- Next Week
- Next Year

thx,
wes
DateImg.gif
  • Wes42
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
  • Karma: 0
Last Edit: 1 year, 8 months ago by Wes42.

Re: Altering the standard DATE field 1 year, 8 months ago #2

Hi Wes,

Are you trying to customize the SCDateCell itself, or its detail view (containing the picker), or both?

Thanks.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: Altering the standard DATE field 1 year, 8 months ago #3

Both.

I only need to capture a standard time (say 6:00 am) for each day.
And then I would like, what is basically some 'quick' picks for dates.

thx,
wes
  • Wes42
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
  • Karma: 0

Re: Altering the standard DATE field 1 year, 8 months ago #4

Hi again Wes,

I think the best option for you is to subclass SCDateCell and provide your custom functionality there.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: Altering the standard DATE field 1 year, 8 months ago #5

Okay, I will try that.
But
Is there an example available in SensibleCocoa that I could follow?
If not, I will find something on the web.

thx for your response on this.
wes
  • Wes42
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
  • Karma: 0

Re: Altering the standard DATE field 1 year, 8 months ago #6

Yes, you can actually just follow how all of our control cells subclass SCControlCell (e.g., how SCDataCell subclasses SCControlCell to provide its own custom functionality). Also, if you ever get stuck in the middle, I'd be happy to help you if you can send me your code.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72
  • Page:
  • 1
Time to create page: 1.52 seconds