Returns the window’s field editor, creating it if requested.
Original signature is '- (NSText *)fieldEditor:(BOOL)createWhenNeeded forObject:(id)anObject'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
Parameters
- createWhenNeeded (Boolean)
- If YES, creates a field editor if one doesn’t exist; if NO, does not create a field editor.
- anObject (Id)
- A text-displaying object for which the delegate (in windowWillReturnFieldEditor:toObject:) assigns a custom field editor. Pass nil to get the default field editor, which can be the NSWindow field editor or a custom field editor returned by the delegate.
Return Value
Returns the field editor for the designated object (anObject) or, if anObject is nil, the default field editor. Returns nil if createFlag is NO and if the field editor doesn’t exist.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)