• 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
NSComboBox undo bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSComboBox undo bug?


  • Subject: NSComboBox undo bug?
  • From: Ken Victor <email@hidden>
  • Date: Mon, 24 Apr 2006 17:45:40 -0700

i believe the following behavior to be a bug, but perhaps i misunderstand what should happen. i first discovered this in my own app, but then discovered the same errant(?) behavior exists in the SimpleComboBox sample code. since SimpleComboBox claims (in its readme) to handle undo for the text field of the combo box, i'm sorta kinda forced to believe that maybe i misunderstand what should happen.

here's how to see the behavior.

build SimpleComboBox

type a "c" into the Genre combo box text field

SimpleComboBox completes and replaces your typed "c" with "Classic Rock" with everything but the first "C" selected.

not type command-z (or choose "Undo Typing" from the edit menu)

the result leaves "lassic Rock" in the text field, with the insertion point at the start of the text field!

i expected undo to first delete the selected text (ie, the completion text) and then to remove the typed in character. thus, the text field would be empty, just as it was before the first character was typed.

is my expectation wrong? if not, is this a known bug? and can anyone suggest a work around (that doesn't involve using private methods or ivars)? if this is proper behavior, can anyone suggest a solution that will provide the behavior i'd like (that again, doesn't require the use of private methods or ivars)?

thanx,
ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Core-Data, can you issue an NSrequest from awakefrominsert
  • Next by Date: Re: Should Cocoa Apps have splash screens at all ?
  • Previous by thread: Re: FYI: Cocoa's framework scaling works great!
  • Next by thread: file-specifying dialog
  • Index(es):
    • Date
    • Thread