Questions tagged [defaults]

111 questions
0
votes
1 answer

Xcode User Defaults unrecognized selector error

I'm getting started to use User Defaults on Cocoa and I'm getting an [NSConcreteData alphaComponent]: unrecognized selector sent to instance 0x100123660 error. Here is the source code : AppDelegate.m file : - (void)awakeFromNib{ NSColor *myColor =…
user1949304
0
votes
1 answer

defaults write help (Mac)

I am trying to set a preference for Firefox to open in 32bit mode on 130 macs via Apple Remote Desktop. The easiest way to do this usually is with defaults write unfortunately I havent found any documention on this, and I cant figure out the syntax…
Brian
  • 622
  • 10
  • 29
0
votes
1 answer

jQuery plugin defaults containing complex objects

Is the following definition of defaults bad practice? var defaults = { name:'', surname:'', address:{ part1:'', part2:'', postCode:'' } }; If only part1 in the address object is defined by the plugin…
Matthew Grima
  • 1,513
  • 5
  • 25
  • 40
0
votes
4 answers

How to reset PHP array to its default keys and values

I have PHP array: $curl_options = array( CURLOPT_PORT => 80, CURLOPT_CONNECTTIMEOUT => 10, CURLOPT_TIMEOUT => 30 ); Then I add new elements and change some values: $curl_options[CURLOPT_USERAGENT] = "Opera/9.02 (Windows NT 5.1; U;…
Serge
  • 35
  • 1
  • 5
0
votes
1 answer

Default error messages in grails

I want to know where Grails sets default error messages. For example I've got this one in my message.properties file. When I try to save data with wrong value, this message appears. But I can't understand where (in code) he sets this…
emilan
  • 12,825
  • 11
  • 32
  • 37
-1
votes
1 answer

How do I stop MS Word from auto-left-aligning new paragraphs generated from linked Excel objects?

I am created a form-letter using an Excel spreadsheet as a forming tool connected to a database and using paste-link to connect the results to an MS Word document. Each section of the document is given a single cell to draw from which utilizes a…
Glamador
  • 75
  • 3
  • 10
1 2 3 4 5 6 7
8