NSMenu.m patch reworks the notifications use in order that the menu itself hasn't be included in a notification until the notification is sent.
I'm less sure for the NSMenuView.m patch : it only removes few lines which seems to have no reason to be there and caused a retain on NSMenu. Must be confirmed.
NSMenu patch has fixed the code below :
NSMenu *menu = [[NSMenu alloc] initWithTitle:@"boum"]; [menu addItem:menuItem]; // now the menu retain count is still 1 and not higher
NSMenuView patch has fixed the code below :
NSMenu *menu = [[NSMenu alloc] initWithTitle:@"boum"]; [NSMenu popUpContextMenu:menu event:event view:view]; [menu release]; // now the menu is released and deallocated
Thanks, Quentin.
-- Quentin Math� [EMAIL PROTECTED]
NSMenuView.m.patch
Description: Binary data
NSMenu.m.patch
Description: Binary data_______________________________________________ Bug-gnustep mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-gnustep
