• 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
com.webobjects.foundation.NSMutableArray.addObject("anString");
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

com.webobjects.foundation.NSMutableArray.addObject("anString");


  • Subject: com.webobjects.foundation.NSMutableArray.addObject("anString");
  • From: Ricardo Strausz <email@hidden>
  • Date: Mon, 1 Sep 2003 13:34:11 -0500

I am getting crazy with this... please help.
It may be just as simple, but it looks like I am blind about it.

The scenario: I am inserting a new object in a DisplayGroup which takes
its values from another one which alredy exists (in another
DisplayGroup). I am using an NSDictionary as a "transport" object for
the values. The code is below.

The error is: com.webobjects.foundation.NSMutableArray does not
responds to addObject()
which is obviously not true!!!!

Am I doing something wrong?
or, do I have to blame the Bridge??

- (IBAction)add:(id)sender
{
     EODisplayGroup* dgDetallesP; //  asume this exists (it lives in the
nib)
     EODisplayGroup* dgDetallesF; //  asume this exists (it lives in the
nib)
     NSArray* source = [dgDetallesP selectedObjects];
     NSEnumerator* enSource = [source objectEnumerator];
     EOGenericRecord* eo = nil;

     while([enSource hasMoreElements]){
         eo = [enSource nextElement];

         NSMutableArray* keys =
[NSClassFromString(@"com.webobjects.foundation.NSMutableArray") new];
         [keys addObject:@"cantidad"];
         [keys addObject:@"descripcion"];
         NSDictionary* nsd = [eo valuesForKeys:keys];

         [dgDetallesF insert:self];
         EOGenericRecord* neo = [dgDetallesF selectedObject];
         [neo takeValuesFromDictionary:nsd];
     }
}


Dino
http://homepage.mac.com/strausz
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • [partially solved]: com.webobjects.foundation.NSMutableArray.addObject("anString");
      • From: Strausz Riccardo <email@hidden>
  • Prev by Date: Re: Webobject Windows Trial
  • Next by Date: design help needed
  • Previous by thread: Re: Webobject Windows Trial
  • Next by thread: [partially solved]: com.webobjects.foundation.NSMutableArray.addObject("anString");
  • Index(es):
    • Date
    • Thread