Re: Subclassing NSControl to support multiple NSCells
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