| Summary: | Please make Shell.window a public field | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Prakash Rangaraj <prakash> |
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | skovatch |
| Version: | 3.7 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Mac OS X | ||
| Whiteboard: | |||
|
Description
Prakash Rangaraj
You can always get at the NSWindow of a Control by calling view.window(), which is public on NSWindow. I'd like to avoid making any more fields public. If it returns null the NSView hasn't been parented to a NSWindow yet. All of the usual caveats apply there about accessing the 'view' field, but at this point I highly doubt we would rename or otherwise change that. BTW, the 'view' field of a Shell is the content view of the window, so it will always be set. Thanks Scott. view.window() works fine for me |