• 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: Subclassing NSControl to support multiple NSCells
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subclassing NSControl to support multiple NSCells


  • Subject: Re: Subclassing NSControl to support multiple NSCells
  • From: Michael Rothwell <email@hidden>
  • Date: Tue, 23 Nov 2004 19:08:22 -0500

It looks like NSControl should tell its cells to draw themselves in its -drawRect method.

-(void)	drawRect: (NSRect)rect
{
	// for() {
	[[self cell] setStringValue:@"whatever"];
	[[self cell] drawWithFrame:box inView:self];
	// };
}

Michael Rothwell
email@hidden

On Nov 22, 2004, at 4:39 PM, Michael Rothwell wrote:


I've looked at the "clock control" example and have a functioning NSCell and NSControl subclass pair. I would like to have my control manage multiple cells, as do NSTableView and NSMatrix. My control will be grid-like, but with cells that span multiple columns. I'm not sure how to proceed with this. Any examples or pointers?


Thanks


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Subclassing NSControl to support multiple NSCells (From: Michael Rothwell <email@hidden>)

  • Prev by Date: How to receive pending notifications in a thread before exiting?
  • Next by Date: Re: NSController and NSCalendarDate
  • Previous by thread: Subclassing NSControl to support multiple NSCells
  • Next by thread: NSToolbarItem action problem
  • Index(es):
    • Date
    • Thread