Oolite
Loading...
Searching...
No Matches
NSUserDefaults(OOExtractor) Category Reference

#include <OOCollectionExtractors.h>

Instance Methods

(char) - oo_charForKey:defaultValue:
(short) - oo_shortForKey:defaultValue:
(int) - oo_intForKey:defaultValue:
(long) - oo_longForKey:defaultValue:
(long long) - oo_longLongForKey:defaultValue:
(NSInteger) - oo_integerForKey:defaultValue:
(unsigned char) - oo_unsignedCharForKey:defaultValue:
(unsigned short) - oo_unsignedShortForKey:defaultValue:
(unsigned int) - oo_unsignedIntForKey:defaultValue:
(unsigned long) - oo_unsignedLongForKey:defaultValue:
(unsigned long long) - oo_unsignedLongLongForKey:defaultValue:
(NSUInteger) - oo_unsignedIntegerForKey:defaultValue:
(BOOL) - oo_boolForKey:defaultValue:
(BOOL) - oo_fuzzyBooleanForKey:defaultValue:
(float) - oo_floatForKey:defaultValue:
(double) - oo_doubleForKey:defaultValue:
(float) - oo_nonNegativeFloatForKey:defaultValue:
(double) - oo_nonNegativeDoubleForKey:defaultValue:
(id) - oo_objectForKey:defaultValue:
(id) - oo_objectOfClass:forKey:defaultValue:
(NSString *) - oo_stringForKey:defaultValue:
(NSArray *) - oo_arrayForKey:defaultValue:
(NSSet *) - oo_setForKey:defaultValue:
(NSDictionary *) - oo_dictionaryForKey:defaultValue:
(NSData *) - oo_dataForKey:defaultValue:
(char) - oo_charForKey:
(short) - oo_shortForKey:
(int) - oo_intForKey:
(long) - oo_longForKey:
(long long) - oo_longLongForKey:
(unsigned char) - oo_unsignedCharForKey:
(unsigned short) - oo_unsignedShortForKey:
(unsigned int) - oo_unsignedIntForKey:
(unsigned long) - oo_unsignedLongForKey:
(unsigned long long) - oo_unsignedLongLongForKey:
(BOOL) - oo_fuzzyBooleanForKey:
(double) - oo_doubleForKey:
(float) - oo_nonNegativeFloatForKey:
(double) - oo_nonNegativeDoubleForKey:
(id) - oo_objectOfClass:forKey:
(NSSet *) - oo_setForKey:

Detailed Description

Definition at line 223 of file OOCollectionExtractors.h.

Method Documentation

◆ oo_arrayForKey:defaultValue:

- (NSArray *) oo_arrayForKey: (id) key
defaultValue: (NSArray*) value 

Definition at line 778 of file OOCollectionExtractors.m.

778 :(id)key defaultValue:(NSArray*)value
779{
780 return [self oo_objectOfClass:[NSArray class] forKey:key defaultValue:value];
781}

References oo_objectOfClass:forKey:defaultValue:.

Here is the call graph for this function:

◆ oo_boolForKey:defaultValue:

- (BOOL) oo_boolForKey: (id) key
defaultValue: (BOOL) value 

Definition at line 715 of file OOCollectionExtractors.m.

715 :(id)key defaultValue:(BOOL)value
716{
717 return OOBooleanFromObject([self objectForKey:key], value);
718}
BOOL OOBooleanFromObject(id object, BOOL defaultValue)

References OOBooleanFromObject().

Here is the call graph for this function:

◆ oo_charForKey:

- (char) oo_charForKey: (id) key

Definition at line 798 of file OOCollectionExtractors.m.

798 :(id)key
799{
800 return [self oo_charForKey:key defaultValue:0];
801}

References oo_charForKey:defaultValue:.

Here is the call graph for this function:

◆ oo_charForKey:defaultValue:

- (char) oo_charForKey: (id) key
defaultValue: (char) value 

Definition at line 655 of file OOCollectionExtractors.m.

655 :(id)key defaultValue:(char)value
656{
657 return OOCharFromObject([self objectForKey:key], value);
658}

Referenced by oo_charForKey:.

Here is the caller graph for this function:

◆ oo_dataForKey:defaultValue:

- (NSData *) oo_dataForKey: (id) key
defaultValue: (NSData*) value 

Definition at line 793 of file OOCollectionExtractors.m.

793 :(id)key defaultValue:(NSData*)value
794{
795 return [self oo_objectOfClass:[NSData class] forKey:key defaultValue:value];
796}

References oo_objectOfClass:forKey:defaultValue:.

Here is the call graph for this function:

◆ oo_dictionaryForKey:defaultValue:

- (NSDictionary *) oo_dictionaryForKey: (id) key
defaultValue: (NSDictionary*) value 

Definition at line 788 of file OOCollectionExtractors.m.

788 :(id)key defaultValue:(NSDictionary*)value
789{
790 return [self oo_objectOfClass:[NSDictionary class] forKey:key defaultValue:value];
791}

References oo_objectOfClass:forKey:defaultValue:.

Here is the call graph for this function:

◆ oo_doubleForKey:

- (double) oo_doubleForKey: (NSString*) key

Definition at line 855 of file OOCollectionExtractors.m.

855 :(NSString*)key
856{
857 return OODoubleFromObject([self objectForKey:key], 0.0);
858}
double OODoubleFromObject(id object, double defaultValue)

References OODoubleFromObject().

Here is the call graph for this function:

◆ oo_doubleForKey:defaultValue:

- (double) oo_doubleForKey: (id) key
defaultValue: (double) value 

Definition at line 732 of file OOCollectionExtractors.m.

732 :(id)key defaultValue:(double)value
733{
734 return OODoubleFromObject([self objectForKey:key], value);
735}

References OODoubleFromObject().

Here is the call graph for this function:

◆ oo_floatForKey:defaultValue:

- (float) oo_floatForKey: (id) key
defaultValue: (float) value 

Definition at line 727 of file OOCollectionExtractors.m.

727 :(id)key defaultValue:(float)value
728{
729 return OOFloatFromObject([self objectForKey:key], value);
730}
float OOFloatFromObject(id object, float defaultValue)

References OOFloatFromObject().

Here is the call graph for this function:

◆ oo_fuzzyBooleanForKey:

- (BOOL) oo_fuzzyBooleanForKey: (id) key

Definition at line 849 of file OOCollectionExtractors.m.

849 :(id)key
850{
851 return [self oo_fuzzyBooleanForKey:key defaultValue:0.0f];
852}

References oo_fuzzyBooleanForKey:defaultValue:.

Here is the call graph for this function:

◆ oo_fuzzyBooleanForKey:defaultValue:

- (BOOL) oo_fuzzyBooleanForKey: (id) key
defaultValue: (float) value 

Definition at line 721 of file OOCollectionExtractors.m.

721 :(id)key defaultValue:(float)value
722{
723 return OOFuzzyBooleanFromObject([self objectForKey:key], value);
724}
BOOL OOFuzzyBooleanFromObject(id object, float defaultValue)

References OOFuzzyBooleanFromObject().

Referenced by oo_fuzzyBooleanForKey:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ oo_integerForKey:defaultValue:

- (NSInteger) oo_integerForKey: (id) key
defaultValue: (NSInteger) value 

Definition at line 680 of file OOCollectionExtractors.m.

680 :(id)key defaultValue:(NSInteger)value
681{
682 return OOIntegerFromObject([self objectForKey:key], value);
683}
OOINLINE NSInteger OOIntegerFromObject(id object, NSInteger defaultValue)

References OOIntegerFromObject().

Here is the call graph for this function:

◆ oo_intForKey:

- (int) oo_intForKey: (id) key

Definition at line 808 of file OOCollectionExtractors.m.

808 :(id)key
809{
810 return [self oo_intForKey:key defaultValue:0];
811}

References int(), and oo_intForKey:defaultValue:.

Here is the call graph for this function:

◆ oo_intForKey:defaultValue:

- (int) oo_intForKey: (id) key
defaultValue: (int) value 

Definition at line 665 of file OOCollectionExtractors.m.

665 :(id)key defaultValue:(int)value
666{
667 return OOIntFromObject([self objectForKey:key], value);
668}
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque

References int().

Referenced by oo_intForKey:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ oo_longForKey:

- (long) oo_longForKey: (id) key

Definition at line 813 of file OOCollectionExtractors.m.

813 :(id)key
814{
815 return [self oo_longForKey:key defaultValue:0];
816}

References long(), and oo_longForKey:defaultValue:.

Here is the call graph for this function:

◆ oo_longForKey:defaultValue:

- (long) oo_longForKey: (id) key
defaultValue: (long) value 

Definition at line 670 of file OOCollectionExtractors.m.

670 :(id)key defaultValue:(long)value
671{
672 return OOLongFromObject([self objectForKey:key], value);
673}
typedef long(ZCALLBACK *tell_file_func) OF((voidpf opaque

References long().

Referenced by oo_longForKey:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ oo_longLongForKey:

- (long long) oo_longLongForKey: (id) key

Definition at line 818 of file OOCollectionExtractors.m.

818 :(id)key
819{
820 return [self oo_longLongForKey:key defaultValue:0];
821}

References long(), and oo_longLongForKey:defaultValue:.

Here is the call graph for this function:

◆ oo_longLongForKey:defaultValue:

- (long long) oo_longLongForKey: (id) key
defaultValue: (long long) value 

Definition at line 675 of file OOCollectionExtractors.m.

675 :(id)key defaultValue:(long long)value
676{
677 return OOLongLongFromObject([self objectForKey:key], value);
678}
long long OOLongLongFromObject(id object, long long defaultValue)

References long(), and OOLongLongFromObject().

Referenced by oo_longLongForKey:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ oo_nonNegativeDoubleForKey:

- (double) oo_nonNegativeDoubleForKey: (id) key

Definition at line 865 of file OOCollectionExtractors.m.

865 :(id)key
866{
867 return OONonNegativeDoubleFromObject([self objectForKey:key], 0.0);
868}
double OONonNegativeDoubleFromObject(id object, double defaultValue)

References OONonNegativeDoubleFromObject().

Here is the call graph for this function:

◆ oo_nonNegativeDoubleForKey:defaultValue:

- (double) oo_nonNegativeDoubleForKey: (id) key
defaultValue: (double) value 

Definition at line 742 of file OOCollectionExtractors.m.

742 :(id)key defaultValue:(double)value
743{
744 return OONonNegativeDoubleFromObject([self objectForKey:key], value);
745}

References OONonNegativeDoubleFromObject().

Here is the call graph for this function:

◆ oo_nonNegativeFloatForKey:

- (float) oo_nonNegativeFloatForKey: (id) key

Definition at line 860 of file OOCollectionExtractors.m.

860 :(id)key
861{
862 return OONonNegativeFloatFromObject([self objectForKey:key], 0.0f);
863}
float OONonNegativeFloatFromObject(id object, float defaultValue)

References OONonNegativeFloatFromObject().

Here is the call graph for this function:

◆ oo_nonNegativeFloatForKey:defaultValue:

- (float) oo_nonNegativeFloatForKey: (id) key
defaultValue: (float) value 

Definition at line 737 of file OOCollectionExtractors.m.

737 :(id)key defaultValue:(float)value
738{
739 return OONonNegativeFloatFromObject([self objectForKey:key], value);
740}

References OONonNegativeFloatFromObject().

Here is the call graph for this function:

◆ oo_objectForKey:defaultValue:

- (id) oo_objectForKey: (id) key
defaultValue: (id) value 

Definition at line 747 of file OOCollectionExtractors.m.

747 :(id)key defaultValue:(id)value
748{
749 id objVal = [self objectForKey:key];
750 id result;
751
752 if (objVal != nil)
753 result = objVal;
754 else
755 result = value;
756
757 return result;
758}
return nil

References nil.

◆ oo_objectOfClass:forKey:

- (id) oo_objectOfClass: (Class) class
forKey: (id) key 

Definition at line 870 of file OOCollectionExtractors.m.

870 :(Class)class forKey:(id)key
871{
872 return [self oo_objectOfClass:class forKey:key defaultValue:nil];
873}

References oo_objectOfClass:forKey:defaultValue:.

Here is the call graph for this function:

◆ oo_objectOfClass:forKey:defaultValue:

- (id) oo_objectOfClass: (Class) class
forKey: (id) key
defaultValue: (id) value 

Definition at line 760 of file OOCollectionExtractors.m.

760 :(Class)class forKey:(id)key defaultValue:(id)value
761{
762 id objVal = [self objectForKey:key];
763 id result;
764
765 if ([objVal isKindOfClass:class])
766 result = objVal;
767 else
768 result = value;
769
770 return result;
771}

Referenced by oo_arrayForKey:defaultValue:, oo_dataForKey:defaultValue:, oo_dictionaryForKey:defaultValue:, and oo_objectOfClass:forKey:.

Here is the caller graph for this function:

◆ oo_setForKey:

- (NSSet *) oo_setForKey: (id) key

Definition at line 875 of file OOCollectionExtractors.m.

875 :(id)key
876{
877 return [self oo_setForKey:key defaultValue:nil];
878}

References oo_setForKey:defaultValue:.

Here is the call graph for this function:

◆ oo_setForKey:defaultValue:

- (NSSet *) oo_setForKey: (id) key
defaultValue: (NSSet*) value 

Definition at line 783 of file OOCollectionExtractors.m.

783 :(id)key defaultValue:(NSSet*)value
784{
785 return SetForObject([self objectForKey:key], value);
786}
static NSSet * SetForObject(id object, NSSet *defaultValue)

References SetForObject().

Referenced by oo_setForKey:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ oo_shortForKey:

- (short) oo_shortForKey: (id) key

Definition at line 803 of file OOCollectionExtractors.m.

803 :(id)key
804{
805 return [self oo_shortForKey:key defaultValue:0];
806}

References oo_shortForKey:defaultValue:.

Here is the call graph for this function:

◆ oo_shortForKey:defaultValue:

- (short) oo_shortForKey: (id) key
defaultValue: (short) value 

Definition at line 660 of file OOCollectionExtractors.m.

660 :(id)key defaultValue:(short)value
661{
662 return OOShortFromObject([self objectForKey:key], value);
663}

Referenced by oo_shortForKey:.

Here is the caller graph for this function:

◆ oo_stringForKey:defaultValue:

- (NSString *) oo_stringForKey: (id) key
defaultValue: (NSString*) value 

Definition at line 773 of file OOCollectionExtractors.m.

773 :(id)key defaultValue:(NSString*)value
774{
775 return StringForObject([self objectForKey:key], value);
776}
static NSString * StringForObject(id object, NSString *defaultValue)

References StringForObject().

Here is the call graph for this function:

◆ oo_unsignedCharForKey:

- (unsigned char) oo_unsignedCharForKey: (id) key

Definition at line 823 of file OOCollectionExtractors.m.

823 :(id)key
824{
825 return [self oo_unsignedCharForKey:key defaultValue:0];
826}

References oo_unsignedCharForKey:defaultValue:.

Here is the call graph for this function:

◆ oo_unsignedCharForKey:defaultValue:

- (unsigned char) oo_unsignedCharForKey: (id) key
defaultValue: (unsigned char) value 

Definition at line 685 of file OOCollectionExtractors.m.

685 :(id)key defaultValue:(unsigned char)value
686{
687 return OOUnsignedCharFromObject([self objectForKey:key], value);
688}

Referenced by oo_unsignedCharForKey:.

Here is the caller graph for this function:

◆ oo_unsignedIntegerForKey:defaultValue:

- (NSUInteger) oo_unsignedIntegerForKey: (id) key
defaultValue: (NSUInteger) value 

Definition at line 710 of file OOCollectionExtractors.m.

710 :(id)key defaultValue:(NSUInteger)value
711{
712 return OOUIntegerFromObject([self objectForKey:key], value);
713}
OOINLINE NSInteger OOUIntegerFromObject(id object, NSUInteger defaultValue)

References OOUIntegerFromObject().

Here is the call graph for this function:

◆ oo_unsignedIntForKey:

- (unsigned int) oo_unsignedIntForKey: (id) key

Definition at line 833 of file OOCollectionExtractors.m.

833 :(id)key
834{
835 return [self oo_unsignedIntForKey:key defaultValue:0];
836}

References int(), and oo_unsignedIntForKey:defaultValue:.

Here is the call graph for this function:

◆ oo_unsignedIntForKey:defaultValue:

- (unsigned int) oo_unsignedIntForKey: (id) key
defaultValue: (unsigned int) value 

Definition at line 695 of file OOCollectionExtractors.m.

695 :(id)key defaultValue:(unsigned int)value
696{
697 return OOUnsignedIntFromObject([self objectForKey:key], value);
698}

References int().

Referenced by oo_unsignedIntForKey:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ oo_unsignedLongForKey:

- (unsigned long) oo_unsignedLongForKey: (id) key

Definition at line 838 of file OOCollectionExtractors.m.

838 :(id)key
839{
840 return [self oo_unsignedLongForKey:key defaultValue:0];
841}

References long(), and oo_unsignedLongForKey:defaultValue:.

Here is the call graph for this function:

◆ oo_unsignedLongForKey:defaultValue:

- (unsigned long) oo_unsignedLongForKey: (id) key
defaultValue: (unsigned long) value 

Definition at line 700 of file OOCollectionExtractors.m.

700 :(id)key defaultValue:(unsigned long)value
701{
702 return OOUnsignedLongFromObject([self objectForKey:key], value);
703}

References long().

Referenced by oo_unsignedLongForKey:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ oo_unsignedLongLongForKey:

- (unsigned long long) oo_unsignedLongLongForKey: (id) key

Definition at line 843 of file OOCollectionExtractors.m.

843 :(id)key
844{
845 return [self oo_unsignedLongLongForKey:key defaultValue:0];
846}

References long(), and oo_unsignedLongLongForKey:defaultValue:.

Here is the call graph for this function:

◆ oo_unsignedLongLongForKey:defaultValue:

- (unsigned long long) oo_unsignedLongLongForKey: (id) key
defaultValue: (unsigned long long) value 

Definition at line 705 of file OOCollectionExtractors.m.

705 :(id)key defaultValue:(unsigned long long)value
706{
707 return OOUnsignedLongLongFromObject([self objectForKey:key], value);
708}
unsigned long long OOUnsignedLongLongFromObject(id object, unsigned long long defaultValue)

References long(), and OOUnsignedLongLongFromObject().

Referenced by oo_unsignedLongLongForKey:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ oo_unsignedShortForKey:

- (unsigned short) oo_unsignedShortForKey: (id) key

Definition at line 828 of file OOCollectionExtractors.m.

828 :(id)key
829{
830 return [self oo_unsignedShortForKey:key defaultValue:0];
831}

References oo_unsignedShortForKey:defaultValue:.

Here is the call graph for this function:

◆ oo_unsignedShortForKey:defaultValue:

- (unsigned short) oo_unsignedShortForKey: (id) key
defaultValue: (unsigned short) value 

Definition at line 690 of file OOCollectionExtractors.m.

690 :(id)key defaultValue:(unsigned short)value
691{
692 return OOUnsignedShortFromObject([self objectForKey:key], value);
693}

Referenced by oo_unsignedShortForKey:.

Here is the caller graph for this function:

The documentation for this category was generated from the following files: