mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
* Palettes/2Controls: return code for NSPopUpButton adding programmatically into palette.
This commit is contained in:
parent
25697a5b46
commit
94c450df76
2 changed files with 10 additions and 0 deletions
Binary file not shown.
|
@ -57,6 +57,16 @@
|
|||
|
||||
- (void) finishInstantiate
|
||||
{
|
||||
NSView *contents;
|
||||
id v;
|
||||
|
||||
contents = [originalWindow contentView];
|
||||
v = [[GormNSPopUpButton alloc] initWithFrame: NSMakeRect(73, 159, 70, 22)];
|
||||
[v addItemWithTitle: @"Item 1"];
|
||||
[v addItemWithTitle: @"Item 2"];
|
||||
[v addItemWithTitle: @"Item 3"];
|
||||
[contents addSubview: v];
|
||||
RELEASE(v);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue