• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
nspopupbutton smoothness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: RE: NSStrings obtained from CFStrings
  • Next by Date: Re: NSResponder - rightMouseDown, What am I missing?
  • Previous by thread: state of java bridge
  • Next by thread: NSTask autorelease OR retain/release -> SIGBUS
  • Index(es):
    • Date
    • Thread