| Summary: | [cocoa, gef] RulerComposite is detecting Mac OS X incorrectly, only Carbon not Cocoa | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Justin Dolezy <justin> | ||||
| Component: | GEF-Legacy GEF (MVC) | Assignee: | Alexander Nyßen <nyssen> | ||||
| Status: | RESOLVED INVALID | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | nyssen | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | Macintosh | ||||||
| OS: | Mac OS X | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Justin Dolezy
Created attachment 170241 [details]
Patch to better detect Mac OS X
Patch attached.
Justin, do you have something to reproduce that the fix is actually needed on Cocoa as well? Carbon and Cocoa seem to be quite different worlds... Don't think I do actually; can't remember what this was all about! I think there was some other issue that did affect Cocoa/Mac but only Carbon was being detected so I went and looked for all Carbon references assuming they ought to pick up Cocoa as well... but that's no necessarily so... Yes, that's the reason I ask. I already sorted out one "false positive" yesterday (see bug #313319) and I want to prevent that we incorporate more workarounds (with potential side-effects) than needed. Having consulted Scott Kovatch of the SWT team and having investigated the Scrollable#computeTrim() implementations for both platforms, it seems a respective patch for Cocoa is not needed. Interestingly I can also not reproduce a situation in which the Carbon workaround does have any effect (the snippet seems to compensate the effect of Scrollable#inset(), which only does something in case a border is set, which is not the case with RulerViewer's FigureCanvas). However, as Carbon is an unsupported platform for 3.7 and we are going to remove all workarounds anyway in the near future, I will leave the workaround for Carbon in place (I added a comment to it to indicate it does not apply to Cocoa) and close this one as INVALID. |