[vtkusers] Re: CocoaWindow.h/mm incomplete
Sean McBride
sean at rogue-research.com
Tue Nov 29 10:28:49 EST 2005
On 2005-11-28 19:35, Mike Jackson said:
> I implemented what you have above but there seems to be a problem.
>In my NSDocument Subclass, PFDocument, in the
>windowControllerDidLoadNib method I call:
>
>[vtkView finalInit];
>
>Except that vtkView is still nill at that point. Which is kinda weird
>since I know the constructor has already been called so the reference
>in my PFDocument must not have been set yet. Are you over riding some
>other method in your NSDocument Subclass? Or maybe I am missing some
>hook up in Interface builder?
Is 'vtkView' an IBOutlet? Have you connected it up in IB?
>If I put everything in the vtkCocoaGLView Subclass constructor then I
>get a warning "invalid drawable" when _interactor->Initialize
>(); is called. The warning seems to be harmless, but I would like
>something that didn't produce warnings.
If you look in vtkCocoaRenderWindow.mm, you'll see I added a comment
about seeing that warning too. I never understood why, and agree it
appears harmless.
--
____________________________________________________________
Sean McBride, B. Eng sean at rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
More information about the vtkusers
mailing list