• 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
Creating an NSArray Key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating an NSArray Key


  • Subject: Creating an NSArray Key
  • From: "WODev" <email@hidden>
  • Date: Wed, 19 Oct 2005 12:16:16 -0400

Hi everyone,

I starting to learn WebObjects, but I've come into a little issue trying to create an NSArray from an Entity.

In the WOBuilder, when I try to create a key for a list in a WORepetition, code is created in the .java file, but it's
not showing up in the list where my other keys are.

To create the key, I've:

a) Clicked Edit -> Edit Source -> Add Key
b) Name: accountEntries -> Type Array of: Accounts -> Generate source code for: method returning a value

The code that is entered in the .java files is:
    /** @TypeInfo Accounts */
    public (null) accountEntries()
    {
        return accountEntries;
    }

Shouldn't the code have been:
    /** @TypeInfo Accounts */
    public NSArray accountEntries()
    {
        return accountEntries;
    }

If I modify the code to be "public NSArray ...", I now see a key in the WOBuilder, but it gives me a list of my
variables that are in the entity, not the functions of ( @avg, @count, @max, ....)

Any thoughts,

Thanks.

-- Dominique

How WO was installed:  installed from Developer tool 2.1 on a new installation of X.4
WO Version 5.3

I do have a copy of WO 5.2 which I can install then do the updates.

 _______________________________________________
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: Creating an NSArray Key
      • From: Sacha Mallais <email@hidden>
  • Prev by Date: NSDictionary and FetchSpecificationNamed usage
  • Next by Date: Re: NSDictionary and FetchSpecificationNamed usage
  • Previous by thread: Re: NSDictionary and FetchSpecificationNamed usage
  • Next by thread: Re: Creating an NSArray Key
  • Index(es):
    • Date
    • Thread