• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSButton ical Like
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSButton ical Like


  • Subject: Re: NSButton ical Like
  • From: Emmanuel Pinault <email@hidden>
  • Date: Wed, 19 Nov 2008 13:15:03 -0800


On Nov 19, 2008, at 1:01 PM, Nick Zitzmann wrote:


On Nov 19, 2008, at 12:37 PM, Emmanuel Pinault wrote:

How do I make a button like the mini calendar in ical (the one that show the days and when one is selected , it shows the day with a blue gradient)?


You've got to write one yourself and do all of the drawing, calendrical calculations (which is made somewhat easier by the NSCalendar class), event handling, etc. This is not easy if you are a beginner.

That I part I figured :) disapointing that they don t have a widget pre-made like GTK or KDE have... Building the logic was not hard, nor the even handling (I just use series of buttons) but getting the UI to look similar within the buttons seems to be trickier. My question was more about the drawing of the button themselve (each of the day) and how to make each individual button looking like the one in that mini calendar rather than building the calendar.




Of course, if mimicking the UI is not important, then you can use the built-in NSDatePicker control.



I ll take a look at it . Look like it might sufficient for now :)

Manu
Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSButton ical Like (From: Emmanuel Pinault <email@hidden>)
 >Re: NSButton ical Like (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: How to get notification of rerun application
  • Next by Date: Re: Changing Services HotKey at Runtime
  • Previous by thread: Re: NSButton ical Like
  • Next by thread: Re: NSButton ical Like
  • Index(es):
    • Date
    • Thread