Ignore:
Timestamp:
Jan 7, 2010, 10:31:02 PM (9 years ago)
Author:
palter
Message:

Better fix for NSPopUpButton

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/aux/cocotron/win32/cocotron/cocotron-r710.patch

    r13350 r13367  
    1 Index: AppKit/NSPopUpButton.m
     1Index: AppKit/NSPopUpButtonCell.m
    22===================================================================
    3 --- AppKit/NSPopUpButton.m      (revision 710)
    4 +++ AppKit/NSPopUpButton.m      (working copy)
    5 @@ -23,6 +23,7 @@
    6  {
    7      [super initWithFrame:frame];
    8      [self setPullsDown:pullsDown];
    9 +    [self setMenu:[[NSMenu alloc] init]];
     3--- AppKit/NSPopUpButtonCell.m  (revision 710)
     4+++ AppKit/NSPopUpButtonCell.m  (working copy)
     5@@ -18,6 +18,15 @@
     6 
     7 @implementation NSPopUpButtonCell
     8 
     9+-init {
     10+   self = [super init];
     11+   _pullsDown = NO;
     12+   _menu = [[[NSMenu alloc] init] retain];
     13+   _arrowPosition = NSPopUpArrowAtCenter;
     14+   _preferredEdge = NSMaxYEdge;
     15+   return self;
     16+}
     17+
     18 -(void)encodeWithCoder:(NSCoder *)coder {
     19    NSUnimplementedMethod();
     20 }
     21@@ -59,7 +68,9 @@
     22     [super initTextCell:string];
     23     _menu = [[NSMenu alloc] initWithTitle:string];
     24     [_menu addItemWithTitle:string action:[self action] keyEquivalent:@""];
     25-       
     26+    _arrowPosition = NSPopUpArrowAtCenter;
     27+    _preferredEdge = NSMaxYEdge;
     28+
     29     [self setPullsDown:pullDown];
    1030     
    1131     return self;
    12  }
    1332Index: AppKit/NSApplication.m
    1433===================================================================
Note: See TracChangeset for help on using the changeset viewer.