cocoa :: NSUserDefaults :: defaultinit
cocoa :: NSUserDefaults :: set_object
Wraps:[NSIndexPath setObject: forKey:]
cocoa :: NSUserDefaults :: standard_user_defaults
Wraps:[NSUserDefaults standardUserDefaults]
cocoa :: NSUserDefaults :: string_for_key
Wraps:[NSIndexPath stringForKey:]
cocoa $ NSUserDefaults :: SELF
Type of this instance, automatically specialized in every classcore :: Pointer :: address_is_null
Is the address behind this Object at NULL?core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
cocoa :: NSObject :: defaultinit
core :: Object :: defaultinit
core :: Pointer :: defaultinit
cocoa :: NSUserDefaults :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: native_class_name
The class name of the object in CString format.core :: Pointer :: native_equals
core :: Object :: output_class_name
Display class name on stdout (debug only).core :: Pointer :: premultiply_alpha
Multiply RGB values by their alpha valuecocoa :: NSUserDefaults :: set_object
Wraps:[NSIndexPath setObject: forKey:]
cocoa :: NSUserDefaults :: standard_user_defaults
Wraps:[NSUserDefaults standardUserDefaults]
cocoa :: NSUserDefaults :: string_for_key
Wraps:[NSIndexPath stringForKey:]
# Interface to the defaults system for an app to customize its behavior to match a user's preferences
extern class NSUserDefaults in "ObjC" `{ NSUserDefaults * `}
super NSObject
# Wraps: `[NSUserDefaults standardUserDefaults]`
new standard_user_defaults in "ObjC" `{
return [NSUserDefaults standardUserDefaults];
`}
# Wraps: `[NSIndexPath stringForKey:]`
fun string_for_key(key: NSString): NSString in "ObjC" `{
return [self stringForKey: key];
`}
# Wraps: `[NSIndexPath setObject: forKey:]`
fun set_object(value: NSObject, default_name: NSString)
in "ObjC" `{
[self setObject:value forKey:default_name];
`}
end
lib/cocoa/foundation.nit:153,1--172,3