[bug #24601] NSToolbar: [NSWindow contentView] should not return a view which contains the toolbar in it once the toolbar is opened.
Quentin Mathé <INVALID.NOREPLY <at> gnu.org>
2008-12-01 21:34:48 GMT
Follow-up Comment #6, bug #24601 (project gnustep):
At the time, I wrote the toolbar code. I checked Mac OS X implementation
which does what you suggest. I didn't implement it that way at this time,
because not everybody agreed on having some special toolbar code inside
NSWindow. iirc GSWindowDecorationView wasn't also yet part of gnustep-gui.
From what I recall, in GNUstep there is an NSWindow ivar named _wv which
represents the window view. On Mac OS X, this window view contains the content
view, the widget views and the toolbar view if a toolbar is visible. So the
toolbar view can either be a subview of _wv (as Mac OS X does it) or belong to
the GSWindowDecorationView. I think this last option you propose is cleaner.
Reply to this item at:
Message posté via/par Savannah