lib/abstract_preferences.rb
def defualts_string_array_kvc_accessor(name, path_to_eval_to_object)
      defaults_kvc_accessor(name, "#{path_to_eval_to_object}_wrapped")
      
      class_eval %{
        def #{name}=(new_wrappers)
          if new_wrappers.length < #{name}.length
            Preferences::StringArrayWrapper.destroy(#{name}.first.class, new_wrappers)
          end
          @#{name} = new_wrappers
        end
      }, __FILE__, __LINE__
    end
# Defines read and write KVC accessors like defaults_kvc_accessor does,
# but is used specifically for defaults defined with Namespace#string_array_defaults_accessor.
#
#   class PreferencesController < OSX::NSWindowController
#     defualts_string_array_kvc_accessor :an_array_of_strings, 'preferences.keyword.highlight_words'
#   end
#
# See Namespace#string_array_defaults_accessor for more info.
Defines read and write KVC accessors like defaults_kvc_accessor does,
but is used specifically for defaults defined with Namespace#string_array_defaults_accessor.



See Namespace#string_array_defaults_accessor for more info.
Defines read and write KVC accessors like defaults_kvc_accessor does but is used specifically for defaults defined with Namespace#string_array_defaults_accessor . See Namespace#string_array_defaults_accessor for more info .
def defualts_string_array_kvc_accessor(name, path_to_eval_to_object)
      defaults_kvc_accessor(name, "#{path_to_eval_to_object}_wrapped")
      class_eval %{
        def #{name}=(new_wrappers)
          if new_wrappers.length < #{name}.length
            Preferences::StringArrayWrapper.destroy(#{name}.first.class, new_wrappers)
          end
          @#{name} = new_wrappers
        end
      }, __FILE__, __LINE__
    end
def defualts_string_array_kvc_accessor ( name , path_to_eval_to_object ) defaults_kvc_accessor ( name , "#{path_to_eval_to_object}_wrapped" ) class_eval %{
        def #{name}=(new_wrappers)
          if new_wrappers.length < #{name}.length
            Preferences::StringArrayWrapper.destroy(#{name}.first.class, new_wrappers)
          end
          @#{name} = new_wrappers
        end
      } , __FILE__ , __LINE__ end
Defines read and write KVC accessors like defaults_kvc_accessor does,
but is used specifically for defaults defined with Namespace#string_array_defaults_accessor.
Defines read and write KVC accessors like defaults_kvc_accessor does but is used specifically for defaults defined with Namespace#string_array_defaults_accessor .
name
path_to_eval_to_object