mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 11:41:05 +00:00
Fix NSPopUpButton pullDown issue. fixes issue#46 and issue#47
This commit is contained in:
parent
fe66a7ac59
commit
0f2d8b63b7
4 changed files with 6 additions and 1 deletions
Binary file not shown.
Binary file not shown.
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue