• 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: getting a list of directAction Names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting a list of directAction Names


  • Subject: Re: getting a list of directAction Names
  • From: Jake MacMullin <email@hidden>
  • Date: Tue, 12 Oct 2004 18:20:14 +1000

Try using Java's Reflection API.

Something like this might work:

import java.lang.reflect.*;

public NSArray directActions() {
   NSMutableArray actions = new NSMutableArray();
   try {
      Class c = Class.forName("DirectAction");

      actions.addObjects(c.getDeclaredMethods());
   } catch (Throwable e) {
      System.err.println(e);
   }
   return(actions);
}

HTH,

Jake

On 12/10/04 5:14 PM, "Jonathan Fleming" <email@hidden>
wrote:

> Is there an easy way to get a list of all my directAction Names from my
> DirectAction class and CustomDirectAction classes which extends
> WODirectAction.
>
> I want to do this so that I can put the names into a popup menu for
> myContentEditor so that when the user is adding a link they simply choose
> the appropriate directAction name (instead of trying to put in an <a
> href="absolute_link_name">link name<a/>) and the app does the rest of
> course.
>
> TIA
> Jonathan :^)
>
> _________________________________________________________________
> Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
u
>
> 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: 
 >getting a list of directAction Names (From: "Jonathan Fleming" <email@hidden>)

  • Prev by Date: getting a list of directAction Names
  • Next by Date: RE: Windows XP Sp2 and http Adaptor [solved]
  • Previous by thread: getting a list of directAction Names
  • Next by thread: Re: getting a list of directAction Names
  • Index(es):
    • Date
    • Thread