Google Groups Home
Help | Sign in
Adding a secret: How to deal with empty default in a popup
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Thomas Tempelmann  
View profile
 More options May 9, 4:47 am
From: Thomas Tempelmann <tempelm...@gmail.com>
Date: Fri, 9 May 2008 01:47:06 -0700 (PDT)
Local: Fri, May 9 2008 4:47 am
Subject: Adding a secret: How to deal with empty default in a popup
I have a secret that has the following possible valid values:

not existing = default
empty string = default
0 = default
1 = other meaning #1
2 = other meaning #2

So, there are three possible ways to achieve the default.

I want to show a popup for the choices. But I do not want to have
multiple choices for the various possible default values (empty and
zero) appear in the popup.

How do I achieve this? When I enter an empty string into the "Default
value" field, and even if I then also defined the empty string in the
plist, the popup still does not show that choice but shows an empty
choice instead.

Here's an example:

"Default" = "";
"meaning # 1" = "1";
"meaning #2" = "2";

Now, if the actual value in the prefs is non-existing or empty, I want
the unopened popup to show "Default". However, it shows an empty text
if the pref is non-existing, and only shows "Default" is the pref
exists with an empty value. And same problem if the value is 0.

You can see here what I've entered so far:

http://secrets.textdriven.com/preferences/edit/597


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google