MonobjcMonobjc Documented Class Library
ControlIsValidObject Method (control, object)
NamespacesMonobjc.AppKitINSControlTextEditingDelegateControlIsValidObject(NSControl, Id)

Invoked when the insertion point leaves a cell belonging to the specified control, but before the value of the cell’s object is displayed.

Original signature is '- (BOOL)control:(NSControl *)control isValidObject:(id)object'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
bool ControlIsValidObject(
	NSControl control,
	Id object
Function ControlIsValidObject ( _
	control As NSControl, _
	object As Id _
) As Boolean
bool ControlIsValidObject(
	NSControl^ control, 
	Id^ object
control (NSControl)
The control whose object value needs to be validated.
object (Id)
The object value to validate.
Return Value
YES if you want to allow the control to display the specified value; otherwise, NO to reject the value and return the cursor to the control's cell.
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)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)