Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting check boxes in preference panel at start up



On Thu, 03 Jul 2008 22:12:07 +0200, Laurent ETTOUATI
<email@hidden> said:
>I use Bindings (http://bbs.applescript.net/viewtopic.php?id=16298) to set
>check box preferences for my application. I use a routine to check whether a
>p-list file exists at start-up and then if the p-list does not exist, a
>p-list file is copied from the bundle to the user preferences folder.
>However, check boxes in my preference panel are not set correctly at the
>very first start-up of my app in accordance with the copied p-list. The app
>need to be restart.  How can I do this setting at startup?

What you're doing is totally non-standard and even dangerous behavior. Let
the app maintain its own plist. Never never never create one the way you are
doing. To set default defaults (sorry about that expression), use "make new
default entry" as explained in the docs, or, if you want to be pure Cocoa /
bindings, use registerDefaults:. m.

-- 
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.