org.rococoa.cocoa.appkit.categories
Interface NSKeyValueBindingCreation

All Superinterfaces:
ObjCObject

public interface NSKeyValueBindingCreation
extends ObjCObject

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 NSKeyValueBindingCreation._static_
           
 
Method Summary
 void bind_toObject_withKeyPath_options(NSString binding, ObjCObject observable, NSString keyPath, NSDictionary options)
          Bindings are considered to be a property of the object which is bound (the object the following two methods are sent to) and all information related to bindings should be retained by the object; all standard bindings on AppKit objects (views, cells, table columns, controllers) unbind their bindings automatically when they are released, but if you create key-value bindings for other kind of objects, you need to make sure that you remove those bindings when you release them (observed objects don't retain their observers, so controllers/model objects might continue referencing and messaging the objects that was bound to them).
 NSArray exposedBindings()
          for a new key exposed through this method, the default implementation simply falls back to key-value coding
Original signature : -(NSArray*)exposedBindings
from NSKeyValueBindingCreation native declaration : NSKeyValueBinding.h:30
 NSDictionary infoForBinding(NSString binding)
          Returns a dictionary with information about a binding or nil if the binding is not bound (this is mostly for use by subclasses which want to analyze the existing bindings of an object) - the dictionary contains three key/value pairs: NSObservedObjectKey: object bound, NSObservedKeyPathKey: key path bound, NSOptionsKey: dictionary with the options and their values for the bindings.
 NSArray optionDescriptionsForBinding(NSString aBinding)
          Original signature : -(NSArray*)optionDescriptionsForBinding:(NSString*)
from NSKeyValueBindingCreation native declaration : NSKeyValueBinding.h:54
 void unbind(NSString binding)
          Original signature : -(void)unbind:(NSString*)
from NSKeyValueBindingCreation native declaration : NSKeyValueBinding.h:36
 ObjCClass valueClassForBinding(NSString binding)
          optional - mostly for matching transformers
Original signature : -(Class)valueClassForBinding:(NSString*)
from NSKeyValueBindingCreation native declaration : NSKeyValueBinding.h:31
 
Methods inherited from interface org.rococoa.ObjCObject
id
 

Method Detail

exposedBindings

NSArray exposedBindings()
for a new key exposed through this method, the default implementation simply falls back to key-value coding
Original signature : -(NSArray*)exposedBindings
from NSKeyValueBindingCreation native declaration : NSKeyValueBinding.h:30


valueClassForBinding

ObjCClass valueClassForBinding(NSString binding)
optional - mostly for matching transformers
Original signature : -(Class)valueClassForBinding:(NSString*)
from NSKeyValueBindingCreation native declaration : NSKeyValueBinding.h:31


bind_toObject_withKeyPath_options

void bind_toObject_withKeyPath_options(NSString binding,
                                       ObjCObject observable,
                                       NSString keyPath,
                                       NSDictionary options)
Bindings are considered to be a property of the object which is bound (the object the following two methods are sent to) and all information related to bindings should be retained by the object; all standard bindings on AppKit objects (views, cells, table columns, controllers) unbind their bindings automatically when they are released, but if you create key-value bindings for other kind of objects, you need to make sure that you remove those bindings when you release them (observed objects don't retain their observers, so controllers/model objects might continue referencing and messaging the objects that was bound to them).
placeholders and value transformers are specified in options dictionary
Original signature : -(void)bind:(NSString*) toObject:(id) withKeyPath:(NSString*) options:(NSDictionary*)
from NSKeyValueBindingCreation native declaration : NSKeyValueBinding.h:35


unbind

void unbind(NSString binding)
Original signature : -(void)unbind:(NSString*)
from NSKeyValueBindingCreation native declaration : NSKeyValueBinding.h:36


infoForBinding

NSDictionary infoForBinding(NSString binding)
Returns a dictionary with information about a binding or nil if the binding is not bound (this is mostly for use by subclasses which want to analyze the existing bindings of an object) - the dictionary contains three key/value pairs: NSObservedObjectKey: object bound, NSObservedKeyPathKey: key path bound, NSOptionsKey: dictionary with the options and their values for the bindings.
Original signature : -(NSDictionary*)infoForBinding:(NSString*)
from NSKeyValueBindingCreation native declaration : NSKeyValueBinding.h:41


optionDescriptionsForBinding

NSArray optionDescriptionsForBinding(NSString aBinding)
Original signature : -(NSArray*)optionDescriptionsForBinding:(NSString*)
from NSKeyValueBindingCreation native declaration : NSKeyValueBinding.h:54



Copyright © 2009. All Rights Reserved.