| Summary: | No mechanism to extract the NSView for 3d library | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Daniel <danielhorn> |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P5 | CC: | sezeroz |
| Version: | HG 2.0 | ||
| Hardware: | PowerPC | ||
| OS: | Mac OS X 10.4 (Intel) | ||
| Attachments: | The attachment saves the NSView in the SDL_XSysWMinfo struct | ||
Now that Snow Leopard is out, do you have a 64-bit clean version of this patch? Ryan said he'll clean it up for 64-bit. Changing bug priorities. --ryan. FYI, I backed my patch out because you have access to the nswindow and can get the contentView (and other things) from it directly. http://hg.libsdl.org/SDL/rev/df78adc8ba04 |
Created attachment 323 [details] The attachment saves the NSView in the SDL_XSysWMinfo struct I included a patch that addresses the issue for 32 bit systems by placing the NSView data into the data field of the SDL_XSysWMinfo struct ideally a more OSX specific struct would exist with both NSWindow and NSView fields, each the size of a pointer rather than an int. This particular patch resolves the issue for my application, however.