• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOMailDelivery Woes - Data Types incorrectly set?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOMailDelivery Woes - Data Types incorrectly set?


  • Subject: Re: WOMailDelivery Woes - Data Types incorrectly set?
  • From: Janice Cheung <email@hidden>
  • Date: Wed, 19 Oct 2005 17:02:55 -0400

    Hi Art!

    I have implemented getEmailContactNames() and setGetEmailContactNames(), as well as getEmailContacts() and setGetEmailContacts().
    The code is strikingly similar for both pairs of set() and get() methods.  Thanks for pointing out the discrepancy.  :)

    Janice

Art Isbell wrote:
On Oct 19, 2005, at 6:02 AM, Janice Cheung wrote:

    More specifically, my "to" String is set to binding value server.getEmailContacts.  In reference to the "to" String:

    public String getEmailContactNames(){
       NSArray pc=(NSArray)storedValueForKey("serverContacts");
       java.util.Enumeration e = pc.objectEnumerator();
       StringBuffer tags=new StringBuffer();
       Set emails=new HashSet();
       while (e.hasMoreElements()){
          ServerContact loc=(ServerContact)e.nextElement();
          String email=loc.contact().fullName();
          if (!emails.contains(email)){
             tags.append(email);
             tags.append(",");
             emails.add(email);
        }
    }
       return tags.toString();
        }


    public void setGetEmailContactNames(String value)
     {
       value=getEmailContactNames();
     }

    You state that your text field is bound to server.getEmailContacts, but the accessor methods you included are getEmailContactNames() and setGetEmailContactNames().  You must have implemented getEmailContacts() and setEmailContacts() or you would see a runtime error.  Or maybe the text field is bound to server.getEmailContactNames.  Please clarify.

Aloha,
Art


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >WO and servermgr (From: Pascal Robert <email@hidden>)
 >Re: WO and servermgr (From: Arturo Perez <email@hidden>)
 >WOMailDelivery Woes - Data Types incorrectly set? (From: Janice Cheung <email@hidden>)
 >Re: WOMailDelivery Woes - Data Types incorrectly set? (From: Art Isbell <email@hidden>)

  • Prev by Date: Re: Localizing time
  • Next by Date: Re: NSDictionary and FetchSpecificationNamed usage
  • Previous by thread: Re: WOMailDelivery Woes - Data Types incorrectly set?
  • Next by thread: WOWorx(5) Display Groups - Part 2 Posted
  • Index(es):
    • Date
    • Thread