I have an NSTextField control that will display a context menu when someone 
right clicks on it.  The context menu contains an item that can allow for 
editing of the control's text.  The expectation is that once the edit if 
complete the control will revert to its default behavior in terms of displaying 
its own context menu.

However, this desired behavior after the edit has completed is not achieved 
because, when editing of the control begins, a field editor is assigned to the 
control and the editing takes place in that field editor.  Once editing is 
complete, the field editor remains sitting on top of the control and any right 
clicks from the mouse are now set to the field editor which displays its own 
context menu for editing text rather than the context menu for the NSTextField.

Methods related to changing the first responder for the window are ineffective 
because they do not change the location of the field editor.

What can be done to eliminate the field editor when text editing has completed 
so the NSTextField can revert to its normal behavior until further editing is 
required?

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to