Re: How can a browser's cell determine which matrix it is in?
Re: How can a browser's cell determine which matrix it is in?
- Subject: Re: How can a browser's cell determine which matrix it is in?
- From: Moray Taylor <email@hidden>
- Date: Sun, 4 Jun 2006 20:14:32 +0100
NSBrowserCell inherits from NSCell, which uses
- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView
to draw itself, controlView will *probably* be the NSView you are
looking for.
Is this what you mean?
Cheers
Moray
I have some NSBrowserCell subclasses that I am using in my NSBrowser.
The display data for the cells is loaded asynchronously when the
cell needs to display (delegate method).
When the data has loaded (in a separate thread) the cell needs to
draw itself and the only method that seems to work is to drawCellAt
in the matrix, but this requires me to pass a ref to the matrix to
the cell which feels wrong.
Is there a way that a cell can find out which matrix it is in? I
tried walking up the superview chain, but this does not work since
the cell's NSControl is not in the view hierarchy at the point the
delegate's willDisplayCell is called.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40dataactive.com
This email sent to email@hidden
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/
email_________________________________________________________________
_____
_______________________________________________
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