Re: [osg-users] iOS: integration with not-OpenGL apps

3 views
Skip to first unread message

Mike Wozniewski

unread,
Oct 31, 2012, 12:16:16 PM10/31/12
to osg-...@lists.openscenegraph.org
FYI, it looks like Stephan's FlipsideView example is broken in iOS 6.

I get an error when trying to add the view:

Code:
-[UIView setRootViewController:]: unrecognized selector sent to instance 0xca36f0
2012-10-31 11:53:50.850 viewtest[2745:907] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIView setRootViewController:]: unrecognized selector sent to instance 0xca36f0'



In my project, I ended up creating a custom subclass of UIView, which I use instead of the default one that comes with a UIViewController and added the following method to my custom class:

Code:
- (void) setRootViewController:(UIViewController*)vc;



It's implementation is empty (no op), but it allows the OSG view to be added and everything updates correctly after that.

Now my only problem is that my app crashes when the view is Dealloc'd. I get this error:

Code:
*** -[GraphicsWindowIOSGLView setGraphicsWindow:]: message sent to deallocated instance 0x2411acc0



Any ideas for fixing that one?

Thanks,
Mike

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=50919#50919





_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Stephan Huber

unread,
Nov 3, 2012, 10:57:14 AM11/3/12
to osg-...@lists.openscenegraph.org
Hi Mike,

thanks for the bug-report, I fixed the issue on the gtihub repository. I
will submit a new version to osg.submission asap.

I am not sure why your app crashes, perhaps you can enable NSZombies and
get an idea, why this happens.

cheers,
Stepan
Am 31.10.12 17:16, schrieb Mike Wozniewski:
Reply all
Reply to author
Forward
0 new messages