mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-27 17:20:46 +00:00
29 lines
480 B
Mathematica
29 lines
480 B
Mathematica
|
/*
|
||
|
copyright 2005 Alexander Malmberg <alexander@malmberg.org>
|
||
|
*/
|
||
|
|
||
|
#include "Testing.h"
|
||
|
|
||
|
#include <AppKit/NSApplication.h>
|
||
|
#include <AppKit/NSPopUpButton.h>
|
||
|
|
||
|
int main(int argc, char **argv)
|
||
|
{
|
||
|
CREATE_AUTORELEASE_POOL(arp);
|
||
|
NSPopUpButton *b;
|
||
|
|
||
|
[NSApplication sharedApplication];
|
||
|
|
||
|
b=[[NSPopUpButton alloc] init];
|
||
|
|
||
|
[b addItemWithTitle: @"foo"];
|
||
|
[b addItemWithTitle: @"bar"];
|
||
|
|
||
|
pass([b indexOfSelectedItem] == 0,"first item is selected by default");
|
||
|
|
||
|
DESTROY(arp);
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|