mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 19:51:00 +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
|
- (void) finishInstantiate
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
NSView *contents;
|
NSView *contents;
|
||||||
id v;
|
id v;
|
||||||
|
|
||||||
contents = [originalWindow contentView];
|
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 1"];
|
||||||
[v addItemWithTitle: @"Item 2"];
|
[v addItemWithTitle: @"Item 2"];
|
||||||
[v addItemWithTitle: @"Item 3"];
|
[v addItemWithTitle: @"Item 3"];
|
||||||
[contents addSubview: v];
|
[contents addSubview: v];
|
||||||
RELEASE(v);
|
RELEASE(v);
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) willInspectObject: (NSNotification *)notification
|
- (void) willInspectObject: (NSNotification *)notification
|
||||||
|
|
|
@ -73,6 +73,9 @@
|
||||||
id selectedItem;
|
id selectedItem;
|
||||||
id cell = [object cell];
|
id cell = [object cell];
|
||||||
|
|
||||||
|
NSLog(@"pullDown = %d", pullsDown);
|
||||||
|
NSLog(@"cell = %@", cell);
|
||||||
|
|
||||||
[object setPullsDown: pullsDown];
|
[object setPullsDown: pullsDown];
|
||||||
selectedItem = [object selectedItem];
|
selectedItem = [object selectedItem];
|
||||||
[object selectItem: nil];
|
[object selectItem: nil];
|
||||||
|
|
Loading…
Reference in a new issue