nspopupbutton smoothness
nspopupbutton smoothness
- Subject: nspopupbutton smoothness
- From: Francisco Tolmasky <email@hidden>
- Date: Thu, 3 Apr 2003 14:43:16 -0800
I'm working with an nspopupbutton, and one of the options is not a
selection, but an option to edit the possible selections, if this is
selected, the editor window opens and the nsopoupbutton should show
what it was showing before.
To do this I just have it reset the selected item with:
[myPopUpButton selectItemWithTitle: oldTitle];
The problem is, it isn't smooth, u can see the new title being
displayed for a split second, then the old title again, like this:
"Category 1"
-split second- "Edit Categories..."
"Category 1"
I've seen it done correctly before, does anyone know how it is done? I
tried looking to see if nspopupbutton had a delegate and a
shouldSelectItem: option, but it doesn't :(
Francisco Tolmasky
email@hidden
http://users.adelphia.net/~ftolmasky
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.