Mercurial > dwindows
comparison mac/dw.m @ 1664:4ec0bce77f70
Fix dw_window_destroy() failing on splitbars and possibly other widgets on Mac.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 24 Apr 2012 00:08:20 +0000 |
parents | 3d4066aab4e0 |
children | d5f39d32c4da |
comparison
equal
deleted
inserted
replaced
1663:a76fb5f1a6c8 | 1664:4ec0bce77f70 |
---|---|
8475 NSMenu *menu = [object menu]; | 8475 NSMenu *menu = [object menu]; |
8476 | 8476 |
8477 [menu removeItem:object]; | 8477 [menu removeItem:object]; |
8478 } | 8478 } |
8479 /* Handle destroying a control or box */ | 8479 /* Handle destroying a control or box */ |
8480 else if([object isKindOfClass:[DWBox class]] || [object isKindOfClass:[DWGroupBox class]] || [object isKindOfClass:[NSControl class]]) | 8480 else if([object isKindOfClass:[NSView class]] || [object isKindOfClass:[NSControl class]]) |
8481 { | 8481 { |
8482 DWBox *parent = (DWBox *)[object superview]; | 8482 DWBox *parent = (DWBox *)[object superview]; |
8483 | 8483 |
8484 /* Some controls are embedded in scrollviews... | 8484 /* Some controls are embedded in scrollviews... |
8485 * so get the parent of the scrollview in that case. | 8485 * so get the parent of the scrollview in that case. |