• 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
checking device or platform
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

checking device or platform


  • Subject: checking device or platform
  • From: Raymond NANEON <email@hidden>
  • Date: Wed, 22 May 2013 10:35:16 +0000 (GMT)

Hi List,

I want to check the device or platform on which my app running, to activate or not some options. Does it exist a component which does it well?

I try WOConditional and test this example :

in Html

      <webobject name = "platform">
        <webobject name = "nav">mobileOption</webobject>
      </webobject>

in woD

platform : WOConditional {
    condition = platform;
}

in Java :

public boolean platform() {
        return mySession().browser().isIPad()
                || mySession().browser().isIPhone()
                || mySession().browser().isUnknownPlatform();
}

This example don't activate mobileOption when I run my app on my iPhone.

Thanks for help
Envoyé depuis iCloud
 _______________________________________________
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

  • Follow-Ups:
    • Re: checking device or platform
      • From: Johann Werner <email@hidden>
  • Prev by Date: Re: Still Undecided about coming to WOWODC 2013?
  • Next by Date: Re: checking device or platform
  • Previous by thread: Re: Sort Approach in Many to Many Subset
  • Next by thread: Re: checking device or platform
  • Index(es):
    • Date
    • Thread