FROM : Nick Zitzmann
DATE : Wed Oct 27 21:30:37 2004
On Oct 27, 2004, at 1:17 PM, Peter Karlsson wrote:
> Dear list!
>
> Can someone please tell me how to programatically populate a
> NSPopupButton
> with ascii characters?
>
> Example: A B C D E F and so on...
Dear Peter!
What about something like this? (note - written in Mail, untested, use
at your own risk, etc.)
unichar aChar;
NSPopUpButton *button; // assume this was already initialized somewhere
else
for (aChar = 'A' ; aChar <= 'Z' ; aChar++)
{
[button addItemWithTitle:[NSString stringWithCharacters:&aChar
length:1]];
}
Nick Zitzmann
<http://www.chronosnet.com/>
DATE : Wed Oct 27 21:30:37 2004
On Oct 27, 2004, at 1:17 PM, Peter Karlsson wrote:
> Dear list!
>
> Can someone please tell me how to programatically populate a
> NSPopupButton
> with ascii characters?
>
> Example: A B C D E F and so on...
Dear Peter!
What about something like this? (note - written in Mail, untested, use
at your own risk, etc.)
unichar aChar;
NSPopUpButton *button; // assume this was already initialized somewhere
else
for (aChar = 'A' ; aChar <= 'Z' ; aChar++)
{
[button addItemWithTitle:[NSString stringWithCharacters:&aChar
length:1]];
}
Nick Zitzmann
<http://www.chronosnet.com/>
| Related mails | Author | Date |
|---|---|---|
| Peter Karlsson | Oct 27, 21:17 | |
| Nick Zitzmann | Oct 27, 21:30 | |
| Bruce Truax | Oct 28, 01:17 |






Cocoa mail archive

