• 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
getting the lastObject value from an NSArray - How to has escaped me
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getting the lastObject value from an NSArray - How to has escaped me


  • Subject: getting the lastObject value from an NSArray - How to has escaped me
  • From: "Jonathan Fleming" <email@hidden>
  • Date: Wed, 29 Oct 2003 07:25:43 +0000

I know this should be very simple but for the life of me I can figure what I should be doing.
I want to get the value form this code please - anyone?



EOEditingContext ec = session().defaultEditingContext();
NSArray pictureList = EOUtilities.rawRowsForSQL(ec,
"BTT",
"SELECT COUNT(*) FROM TB_JOB_PICTURE");
/*this statemnet is all wrong*/ int picCount = Integer.parseInt( pictureList.lastObject().toString() );
NSLog.out.appendln("===\r countOfPictureList = " + picCount);


_________________________________________________________________
Tired of 56k? Get a FREE BT Broadband connection http://www.msn.co.uk/specials/btbroadband
_______________________________________________
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:
    • Re: getting the lastObject value from an NSArray - How to has escaped me
      • From: Art Isbell <email@hidden>
  • Prev by Date: Re: WebObjects 5.2.2, Cocoa EOF applications, Postgresql Plugin problems
  • Next by Date: Re: getting the lastObject value from an NSArray - How to has escaped me
  • Previous by thread: Re: WO5.2.1 -> WO5.2.2 trouble
  • Next by thread: Re: getting the lastObject value from an NSArray - How to has escaped me
  • Index(es):
    • Date
    • Thread