• 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: NSCell Subclass???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSCell Subclass???


  • Subject: Re: NSCell Subclass???
  • From: email@hidden
  • Date: Wed, 7 May 2003 20:57:42 +0200

On mercredi, mai 7, 2003, at 07:33 PM, Hasan Diwan wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm working on a plan to design a program to handle my calendaring needs. What I'm envisioning is having an NSMatrix of CalendarCells (which is a subclass of NSCell that I'll write) for every day in a month. Each day will have a number of timed, untimed, and to-do events and the day number will be in the corner. ASCII art picture:
+__+ +__+
| 1 | | 2 |
| 2,3| | 2,5|
| | | |
+----++----+
and so on till the month is filled. Do I need to subclass NSCell or not? If I do, how would I go about doing so?

As I haven't seen any implementation using this solution leading to a pretty widget, it might be a better idea to use a complete custom view/control to handle this as it's not that complex and still flexible to do this.

Pro:
- All the drawings are belong to you
- You don't have to call a lot of method if a cell is modified (best solution would be to have a data source mechanism as with the NSTableView widget)

Cons:
- you don't have to write a custom cell
- you have to to write a view/control
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSCell Subclass??? (From: Hasan Diwan <email@hidden>)

  • Prev by Date: Re: mouse clicks and first responders
  • Next by Date: Re: Masking a Textfield
  • Previous by thread: NSCell Subclass???
  • Next by thread: Accessing method from another class
  • Index(es):
    • Date
    • Thread