MeVisLab Toolbox Reference
macos::UserDefaults Class Reference

User Defaults related functions. More...

#include <macUserDefaults.h>

Static Public Member Functions

static bool hasValueForKey (const std::string &key)
 Returns 'true' if the key was found. More...
 
static bool boolForKey (const std::string &key)
 Returns the Boolean value associated with the specified key. More...
 
static std::string stringForKey (const std::string &key)
 Returns the string associated with the specified key. More...
 

Detailed Description

User Defaults related functions.

Definition at line 26 of file macUserDefaults.h.

Member Function Documentation

◆ boolForKey()

static bool macos::UserDefaults::boolForKey ( const std::string &  key)
static

Returns the Boolean value associated with the specified key.

If the specified key doesn‘t exist, this method returns 'false'

◆ hasValueForKey()

static bool macos::UserDefaults::hasValueForKey ( const std::string &  key)
static

Returns 'true' if the key was found.

◆ stringForKey()

static std::string macos::UserDefaults::stringForKey ( const std::string &  key)
static

Returns the string associated with the specified key.

For number values, returns the string value of the number


The documentation for this class was generated from the following file: