• 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
seperate String!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

seperate String!


  • Subject: seperate String!
  • From: "WebObjects EMail" <email@hidden>
  • Date: Wed, 4 Feb 2004 17:41:30 +0100

hello,
i want to spilt a String and put the parts in NSArray.

during i try to do that manually i saw an example for that on
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Java/Clas
ses/NSArray.html#//apple_ref/doc/uid/20000182/componentsSeparatedByString_Cla
ssMethod_NSArray


NSStringReference list = "wrenches, hammers, saws";
NSArray listItems = [list.componentsSeparatedByString (", ")];



it does that work for me automatically more or less, but it does not work.

I get this
Error   Syntax error on token "[", "{", "+", "-", "--", "++", "boolean",
"void", "byte", "short", "int", "long", "char", "float", "double", "(",
"true", "false", "IntegerLiteral", "LongLiteral", "FloatingPointLiteral",
"DoubleLiteral", "CharacterLiteral", "StringLiteral", "null", "~", "!",
"super", "this", "new", "Identifier" expected MailRoboter.java Online/src
line 187

Error Stops on  "[list" part.

can anybody tell me please why does this code dont work?
thank you !
_______________________________________________
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: seperate String!
      • From: Jake MacMullin <email@hidden>
    • Re: seperate String!
      • From: Jonathan Rochkind <email@hidden>
  • Prev by Date: Re: send component as email
  • Next by Date: Re: Java 1.4.2 Update ..... safe for WO
  • Previous by thread: Making good EOs
  • Next by thread: Re: seperate String!
  • Index(es):
    • Date
    • Thread