setWidth pop-up list of NSComboBox

2010-02-11 Thread John Yeh
How to change the width of the pop-up list in NSComboBox? When a long string is added to the NSComboBox, it can't displayed completely. how to extend the width of the pop-up list? -John___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

what is the struct of SecKeychainItemRef?

2010-02-03 Thread John Yeh
After a ponter to SecKeychainItemRef is returned, How do I extract (or explore) the data from SecKeychainItemRef? -John___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

multiple windows (dialogs) per nib (.xlib) file

2009-05-28 Thread John Yeh
How do I open a specific window in a nib file? I tried to use the following code, but it displays ALL the windows in that nib file. DialogController -[id]init { self = [super initWithWindowNibName:@MyNibName]; } DialogController *dialogController = [[DialogController alloc] init]; [NSApp

Modal dialog over modal dialog in Cocoa

2009-04-21 Thread John Yeh
In Carban, I can create a modal dialog over a modal dialog without any problem. But in Cocoa, the second modal dialog is always displayed behind the first one, and the event loop is still on the first dialog. In other words, the second modal dialog is unclickable. Can you give me some

code behind NSRunAlertPanel

2009-04-21 Thread John Yeh
I want to know how NSRunAlertPanel is implemented assuming the code is also written in Cocoa. I am curious why NSRunAlertPanel is able to run on top of a modal dialog. Can someone please point me to the code sample or document? Thanks. -John ___