org.rococoa.cocoa.foundation.categories
Interface NSKeyValueObserverNotification

All Superinterfaces:
ObjCObject

public interface NSKeyValueObserverNotification
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 NSKeyValueObserverNotification._static_
           
 
Method Summary
 void didChange_valuesAtIndexes_forKey(int changeKind, NSIndexSet indexes, NSString key)
          Original signature : -(void)didChange:(NSKeyValueChange) valuesAtIndexes:(NSIndexSet*) forKey:(NSString*)
from NSKeyValueObserverNotification native declaration : NSKeyValueObserving.h:142
 void didChangeValueForKey_withSetMutation_usingObjects(NSString key, int mutationKind, NSSet objects)
          Original signature : -(void)didChangeValueForKey:(NSString*) withSetMutation:(NSKeyValueSetMutationKind) usingObjects:(NSSet*)
from NSKeyValueObserverNotification native declaration : NSKeyValueObserving.h:157
 void didChangeValueForKey(NSString key)
          Original signature : -(void)didChangeValueForKey:(NSString*)
from NSKeyValueObserverNotification native declaration : NSKeyValueObserving.h:133
 void willChange_valuesAtIndexes_forKey(int changeKind, NSIndexSet indexes, NSString key)
          Given a key that identifies an _ordered_ to-many relationship, send -observeValueForKeyPath:ofObject:change:context: notification messages of the passed-in change kind to each observer registered for the key, including those that are registered with other objects using key paths that locate the keyed value in this object.
 void willChangeValueForKey_withSetMutation_usingObjects(NSString key, int mutationKind, NSSet objects)
          Given a key that identifies an _unordered_ to-many relationship, send -observeValueForKeyPath:ofObject:change:context: notification messages to each observer registered for the key, including those that are registered with other objects using key paths that locate the keyed value in this object.
 void willChangeValueForKey(NSString key)
          Given a key that identifies a property (attribute, to-one relationship, or ordered or unordered to-many relationship), send -observeValueForKeyPath:ofObject:change:context: notification messages of kind NSKeyValueChangeSetting to each observer registered for the key, including those that are registered with other objects using key paths that locate the keyed value in this object.
 
Methods inherited from interface org.rococoa.ObjCObject
id
 

Method Detail

willChangeValueForKey

void willChangeValueForKey(NSString key)
Given a key that identifies a property (attribute, to-one relationship, or ordered or unordered to-many relationship), send -observeValueForKeyPath:ofObject:change:context: notification messages of kind NSKeyValueChangeSetting to each observer registered for the key, including those that are registered with other objects using key paths that locate the keyed value in this object. Invocations of these methods must always be paired.
The change dictionaries in notifications resulting from use of these methods contain optional entries if requested at observer registration time:
- The NSKeyValueChangeOldKey entry, if present, contains the value returned by -valueForKey: at the instant that -willChangeValueForKey: is invoked (or an NSNull if -valueForKey: returns nil).
- The NSKeyValueChangeNewKey entry, if present, contains the value returned by -valueForKey: at the instant that -didChangeValueForKey: is invoked (or an NSNull if -valueForKey: returns nil).
Original signature : -(void)willChangeValueForKey:(NSString*)
from NSKeyValueObserverNotification native declaration : NSKeyValueObserving.h:132


didChangeValueForKey

void didChangeValueForKey(NSString key)
Original signature : -(void)didChangeValueForKey:(NSString*)
from NSKeyValueObserverNotification native declaration : NSKeyValueObserving.h:133


willChange_valuesAtIndexes_forKey

void willChange_valuesAtIndexes_forKey(int changeKind,
                                       NSIndexSet indexes,
                                       NSString key)
Given a key that identifies an _ordered_ to-many relationship, send -observeValueForKeyPath:ofObject:change:context: notification messages of the passed-in change kind to each observer registered for the key, including those that are registered with other objects using key paths that locate the keyed value in this object. The passed-in kind must be NSKeyValueChangeInsertion, NSKeyValueChangeRemoval, or NSKeyValueChangeReplacement. The passed-in index set must be the indexes of the objects being inserted, removed, or replaced. Invocations of these methods must always be paired, with identical arguments.
The change dictionaries in notifications resulting from use of these methods contain optional entries if requested at observer registration time:
- The NSKeyValueChangeOldKey entry, if present (only for NSKeyValueChangeRemoval and NSKeyValueChangeReplacement), contains an array of the indexed objects from the array returned by -valueForKey: at the instant that -willChangeValueForKey:valuesAtIndexes:forKey: is invoked.
- The NSKeyValueChangeNewKey entry, if present (only for NSKeyValueChangeInsertion and NSKeyValueChangeReplacement), contains an array of the indexed objects from the array returned by -valueForKey: at the instant that -didChangeValueForKey:valuesAtIndexes:forKey: is invoked.
Original signature : -(void)willChange:(NSKeyValueChange) valuesAtIndexes:(NSIndexSet*) forKey:(NSString*)
from NSKeyValueObserverNotification native declaration : NSKeyValueObserving.h:141

Parameters:
changeKind - @see org.rococoa.cocoa.foundation.FoundationLibrary#NSKeyValueChange

didChange_valuesAtIndexes_forKey

void didChange_valuesAtIndexes_forKey(int changeKind,
                                      NSIndexSet indexes,
                                      NSString key)
Original signature : -(void)didChange:(NSKeyValueChange) valuesAtIndexes:(NSIndexSet*) forKey:(NSString*)
from NSKeyValueObserverNotification native declaration : NSKeyValueObserving.h:142

Parameters:
changeKind - @see org.rococoa.cocoa.foundation.FoundationLibrary#NSKeyValueChange

willChangeValueForKey_withSetMutation_usingObjects

void willChangeValueForKey_withSetMutation_usingObjects(NSString key,
                                                        int mutationKind,
                                                        NSSet objects)
Given a key that identifies an _unordered_ to-many relationship, send -observeValueForKeyPath:ofObject:change:context: notification messages to each observer registered for the key, including those that are registered with other objects using key paths that locate the keyed value in this object. The passed-in mutation kind corresponds to an NSMutableSet method. The passed-in set must contain the set that would be passed to the corresponding NSMutableSet method. Invocations of these methods must always be paired, with identical arguments.
The value of the NSKeyValueChangeKindKey entry in change dictionaries in notifications resulting from use of these methods depends on the passed-in mutationKind value:
- NSKeyValueUnionSetMutation -> NSKeyValueChangeInsertion
- NSKeyValueMinusSetMutation -> NSKeyValueChangeRemoval
- NSKeyValueIntersectSetMutation -> NSKeyValueChangeRemoval
- NSKeyValueSetSetMutation -> NSKeyValueChangeReplacement
The change dictionaries may also contain optional entries:
- The NSKeyValueChangeOldKey entry, if present (only for for NSKeyValueChangeRemoval and NSKeyValueChangeReplacement), contains the set of objects that were removed.
- The NSKeyValueChangeNewKey entry, if present (only for NSKeyValueChangeInsertion and NSKeyValueChangeReplacement), contains the set of objects that were added.
Original signature : -(void)willChangeValueForKey:(NSString*) withSetMutation:(NSKeyValueSetMutationKind) usingObjects:(NSSet*)
from NSKeyValueObserverNotification native declaration : NSKeyValueObserving.h:156

Parameters:
mutationKind - @see org.rococoa.cocoa.foundation.FoundationLibrary#NSKeyValueSetMutationKind

didChangeValueForKey_withSetMutation_usingObjects

void didChangeValueForKey_withSetMutation_usingObjects(NSString key,
                                                       int mutationKind,
                                                       NSSet objects)
Original signature : -(void)didChangeValueForKey:(NSString*) withSetMutation:(NSKeyValueSetMutationKind) usingObjects:(NSSet*)
from NSKeyValueObserverNotification native declaration : NSKeyValueObserving.h:157

Parameters:
mutationKind - @see org.rococoa.cocoa.foundation.FoundationLibrary#NSKeyValueSetMutationKind


Copyright © 2009. All Rights Reserved.