How to eliminate field editor from NSTextField?
How to eliminate field editor from NSTextField?
- Subject: How to eliminate field editor from NSTextField?
- From: Tron Thomas <email@hidden>
- Date: Tue, 23 Mar 2010 16:17:48 -0700
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 (email@hidden)
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:
This email sent to email@hidden