org.rococoa.cocoa.appkit.categories
Interface NSEditor

All Superinterfaces:
ObjCObject

public interface NSEditor
extends ObjCObject

methods implemented by controllers, CoreData's managed object contexts, and user interface elements
This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.


Nested Class Summary
static interface NSEditor._static_
           
 
Method Summary
 boolean commitEditing()
          returns whether end editing was successful (while trying to apply changes to a model object, there might be validation problems or so that prevent the operation from being successful
Original signature : -(BOOL)commitEditing
from NSEditor native declaration : NSKeyValueBinding.h:79
 void commitEditingWithDelegate_didCommitSelector_contextInfo(ObjCObject delegate, Selector didCommitSelector, Pointer contextInfo)
          Given that the receiver has been registered with -objectDidBeginEditing: as the editor of some object, and not yet deregistered by a subsequent invocation of -objectDidEndEditing:, attempt to commit the result of the editing.
 void discardEditing()
          forces changing to end (reverts back to the original value)
Original signature : -(void)discardEditing
from NSEditor native declaration : NSKeyValueBinding.h:78
 
Methods inherited from interface org.rococoa.ObjCObject
id
 

Method Detail

discardEditing

void discardEditing()
forces changing to end (reverts back to the original value)
Original signature : -(void)discardEditing
from NSEditor native declaration : NSKeyValueBinding.h:78


commitEditing

boolean commitEditing()
returns whether end editing was successful (while trying to apply changes to a model object, there might be validation problems or so that prevent the operation from being successful
Original signature : -(BOOL)commitEditing
from NSEditor native declaration : NSKeyValueBinding.h:79


commitEditingWithDelegate_didCommitSelector_contextInfo

void commitEditingWithDelegate_didCommitSelector_contextInfo(ObjCObject delegate,
                                                             Selector didCommitSelector,
                                                             Pointer contextInfo)
Given that the receiver has been registered with -objectDidBeginEditing: as the editor of some object, and not yet deregistered by a subsequent invocation of -objectDidEndEditing:, attempt to commit the result of the editing. When committing has either succeeded or failed, send the selected message to the specified object with the context info as the last parameter. The method selected by didCommitSelector must have the same signature as:
- (void)editor:(id)editor didCommit:(BOOL)didCommit contextInfo:(void *)contextInfo;
If an error occurs while attempting to commit, because key-value coding validation fails for example, an implementation of this method should typically send the NSView in which editing is being done a -presentError:modalForWindow:delegate:didRecoverSelector:contextInfo: message, specifying the view's containing window.
Original signature : -(void)commitEditingWithDelegate:(id) didCommitSelector:(SEL) contextInfo:(void*)
from NSEditor native declaration : NSKeyValueBinding.h:89



Copyright © 2009. All Rights Reserved.