C# 클래스 KNFoundation.KNKVC.KNKVCSettable

파일 보기 프로젝트 열기: bt-browser/KNFoundation

공개 메소드들

메소드 설명
SetNullValueForKey ( this o, String key ) : void

Sets a value of the given key to null. Equivalent to Cocoa's –setNilValueForKey:.

SetValueForKey ( this o, Object value, String key ) : void

Attempts to set a Key-Value Coding compliant value on the given object using the given key. A Key-Value Coding compliant value is either a settable property named identically to the key or a method named SetKey()) that takes a single value. If the key doesn't exist, attempts to set SetValueForUndefinedKey() on the object, which by default throws an exception. Equivalent to -setValue:forKey: in Cocoa.

SetValueForKeyPath ( this o, Object value, String keyPath ) : void
SetValueForUndefinedKey ( this o, Object value, String key ) : void

Called when SetValueForKey() can't find a Key-Value coding compliant setter for the given key. If you wish to define custom behaviour for your object's KVC compliance, it's recommended that you override this method. The default implementation throws an exception. Equivalent to Cocoa's –setValue:forUndefinedKey:.

SetValuesForKeysWithDictionary ( this o, Object>.Dictionary keysAndValues ) : void

Sets a dictionary of keys at once. Calls SetValueForKey() for each key in the Dictionary. Equivalent to Cocoa's –setValuesForKeysWithDictionary:.

메소드 상세

SetNullValueForKey() 공개 정적인 메소드

Sets a value of the given key to null. Equivalent to Cocoa's –setNilValueForKey:.
public static SetNullValueForKey ( this o, String key ) : void
o this The base object.
key String The key to set to null.
리턴 void

SetValueForKey() 공개 정적인 메소드

Attempts to set a Key-Value Coding compliant value on the given object using the given key. A Key-Value Coding compliant value is either a settable property named identically to the key or a method named SetKey()) that takes a single value. If the key doesn't exist, attempts to set SetValueForUndefinedKey() on the object, which by default throws an exception. Equivalent to -setValue:forKey: in Cocoa.
public static SetValueForKey ( this o, Object value, String key ) : void
o this The base object.
value Object The value to set.
key String The key to set.
리턴 void

SetValueForKeyPath() 공개 정적인 메소드

public static SetValueForKeyPath ( this o, Object value, String keyPath ) : void
o this
value Object
keyPath String
리턴 void

SetValueForUndefinedKey() 공개 정적인 메소드

Called when SetValueForKey() can't find a Key-Value coding compliant setter for the given key. If you wish to define custom behaviour for your object's KVC compliance, it's recommended that you override this method. The default implementation throws an exception. Equivalent to Cocoa's –setValue:forUndefinedKey:.
public static SetValueForUndefinedKey ( this o, Object value, String key ) : void
o this The base object.
value Object The value that should be set.
key String The key the value should be set for.
리턴 void

SetValuesForKeysWithDictionary() 공개 정적인 메소드

Sets a dictionary of keys at once. Calls SetValueForKey() for each key in the Dictionary. Equivalent to Cocoa's –setValuesForKeysWithDictionary:.
public static SetValuesForKeysWithDictionary ( this o, Object>.Dictionary keysAndValues ) : void
o this The base object.
keysAndValues Object>.Dictionary A Dictionary of keys (NOT key paths) and values to set.
리턴 void