Fix NSPopUpButton pullDown issue. fixes issue#46 and issue#47

This commit is contained in:
Gregory John Casamento 2024-12-07 14:22:42 -05:00
parent fe66a7ac59
commit 0f2d8b63b7
4 changed files with 6 additions and 1 deletions

View file

@ -62,16 +62,18 @@
- (void) finishInstantiate
{
/*
NSView *contents;
id v;
contents = [originalWindow contentView];
v = [[GormNSPopUpButton alloc] initWithFrame: NSMakeRect(73, 159, 70, 22)];
v = [[GormNSPopUpButton alloc] initWithFrame: NSMakeRect(70, 159, 75, 22)];
[v addItemWithTitle: @"Item 1"];
[v addItemWithTitle: @"Item 2"];
[v addItemWithTitle: @"Item 3"];
[contents addSubview: v];
RELEASE(v);
*/
}
- (void) willInspectObject: (NSNotification *)notification

View file

@ -73,6 +73,9 @@
id selectedItem;
id cell = [object cell];
NSLog(@"pullDown = %d", pullsDown);
NSLog(@"cell = %@", cell);
[object setPullsDown: pullsDown];
selectedItem = [object selectedItem];
[object selectItem: nil];