Questions tagged [fieldeditor]
21 questions
5
votes
2 answers
NSOutlineView with transparent field editor
I'm working with a NSOutlineView located on a HUD panel. I configured it so that it doesn't draw its background. Everything looks fine until I double click to edit a cell.
The field editor draws its background and focus ring which completely ruin…

Etabubu
- 53
- 4
4
votes
1 answer
Cocoa: Stopping the field editor from auto-completing on space key
I have a custom view with several NSTextField controls for which I want to supply custom auto-completions and I have successfully implemented all that using the NSTextFieldDelegate Protocol. The auto-completions are full names or place names,…

trojanfoe
- 120,358
- 21
- 212
- 242
4
votes
1 answer
ComboFieldEditor. Dynamically changing the values
I am working on an eclipse RCP project. As I was going through the walkthroughs I came across preference page and started working around it.
Now I need to change the values of the ComboFieldEditor dynamically. As in when I make a selection on a…

Sid
- 51
- 1
- 5
4
votes
5 answers
Custom field editor for NSTextFieldCell in an NSTableView
I have a custom NSTableView subclass filled with several custom NSTextFieldCell subclasses. I would like to be able to change the edited cell by using the arrow keys.
I am able to accomplish this by creating a custom field editor (by subclassing…

Nate Thorn
- 2,193
- 2
- 23
- 27
3
votes
2 answers
NSTextField: exposing its Copy and Paste methods
I am trying to access the copy, cut, and paste methods of a NSTextField instance in its window delegate so I can customize these methods. I find that unlike tableViews and textViews, the textfield's copy, paste and cut actions are not responsive in…

Antony
- 187
- 4
- 15
2
votes
3 answers
Disable Option-Enter line breaks in NSTextField?
I want to disallow entering a new-line character in my NSTextField, which by default is possible by typing Option-Enter (or Option-Return).
While I found some pages explaining how to allow line breaks without having to use the Option modifier, I…

Yang Meyer
- 5,409
- 5
- 39
- 51
2
votes
1 answer
Finding out the NSTextField for a field editor
I' using
- (id)windowWillReturnFieldEditor:(NSWindow *)sender toObject:(id)anObject
to provide my own field editor so i can display a custom context menu.
This works but when inside the "menuForEvent:" method of my field editor, how can i find to…

Lothar
- 12,537
- 6
- 72
- 121
1
vote
0 answers
(Macos cocoa) How to preserve an NSTextField editing state?
I have specific requirements because I have a (child) NSTableView embedded in (parent) NSTableCellView, some data needs to be shown inside the child's NSTableView.
The data can be displayed and edited without issues. But when I edit and scroll down…

Tilseam
- 33
- 6
1
vote
1 answer
How can I show TDBGrid columns editor at run time?
I want to make it so that the user with himself changes the properties of the TDBGrid columns at columns editor in run time and then save columns properties (font name, font size, column width, etc).
I need show TDBGrid columns editor at run time.

Aleks
- 35
- 2
1
vote
2 answers
Add action to a cancel button in an editable grid in vaadin
I'm working with an editable Grid with Vaadin 7. When a row is in edit mode, it shows two buttons: save and cancel.
(Just in case, the image was taken from here Book of Vaadin)
With the:
grid.getEditorFieldGroup().addCommitHandler(new…

Luislode
- 51
- 1
- 7
1
vote
1 answer
Subclassing NSTextField to create a number dialing text field
I am trying to create a number dialing text field, that is, a text field that works in conjunction with an NSStepper sitting next to it.
The text field should display floats and allow the user to use the scroll wheel to adjust the number it is…

andreb
- 596
- 3
- 16
1
vote
1 answer
Text attribute changed for NSTextFieldCell on selection
I have a tableview on which selecting a column of a row will call overridden method
- (void)selectWithFrame:(NSRect)inCellFrame inView:(NSView *)inControlView editor:(NSText *)textObj delegate:(id)anObject start:(NSInteger)selStart…

boom
- 5,856
- 24
- 61
- 96
0
votes
1 answer
Vertically expanding fieldEditor for an NSTextFieldCell
NSWindows have a "field editor" associated with them, which is an NSText that appears in the same place as a NSTextField or NSTextFieldCell when the user focuses on the aforementioned control.
Field editors have the same size as the NSTextField or…

Ivan Vučica
- 9,529
- 9
- 60
- 111
0
votes
1 answer
What parent to set when calling FieldEditor#setEnabled?
I am building a preference page in Eclipse by extending the FieldEditorPreferencePage class. this page contains 2 fields : 1 BooleanFieldEditor (checkbox) and 1 FileFieldEditor. I would like to disable/enable the file field following the checkbox…

moudug
- 209
- 1
- 3
- 13
0
votes
1 answer
Relocate FieldEditor
I'm creating a preference page for my eclipse plugin. For this purpose I make use of the FieldEditor to give the user the chance to edit properties (I have subclassed the needed FieldEditors).
However I want to be able to relocate the created…

Raven
- 2,951
- 2
- 26
- 42