FROM : Moray Taylor
DATE : Sun Jun 04 21:14:32 2006
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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/moray.taylor%
> 40dataactive.com
>
> This email sent to moray.<email_removed>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/
> email_________________________________________________________________
> _____
DATE : Sun Jun 04 21:14:32 2006
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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/moray.taylor%
> 40dataactive.com
>
> This email sent to moray.<email_removed>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/
> email_________________________________________________________________
> _____
| Related mails | Author | Date |
|---|---|---|
| Graham | Jun 4, 21:09 | |
| Moray Taylor | Jun 4, 21:14 | |
| Graham | Jun 4, 22:32 | |
| Moray Taylor | Jun 4, 22:35 |






Cocoa mail archive

