• 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: looks like my syntax is wrong. Does not compile
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: looks like my syntax is wrong. Does not compile


  • Subject: Re: looks like my syntax is wrong. Does not compile
  • From: Andrew Farmer <email@hidden>
  • Date: Fri, 3 Jul 2009 22:00:48 -0700

On 3 Jul 2009, at 21:29, Agha Khan wrote:
Aobject is type of Myobject*

it has an array for 6 intergers

Aobject.myArray = [NSArray arrayWithObjects:[NSNumber numberWithInt: 1], [NSNumber numberWithInt: 2],[NSNumber numberWithInt:3], [NSNumber numberWithInt:4], [NSNumber numberWithInt:5],[NSNumber numberWithInt:6], nil];

Now I would like to randomize it.

for (int j = 0; j < 6; j++)
{
	NSNumber* aNumber = [Aobject _Edge] numberWithInt:j;
   // looks like my syntax is wrong. Does not compile
}

Your syntax is indeed incorrect - you may want to review Apple's Objective-C documentation [1]. Moreover, it's not clear how this is supposed to randomize the array, as no random numbers are involved.


[1]: http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >looks like my syntax is wrong. Does not compile (From: Agha Khan <email@hidden>)

  • Prev by Date: Re: Send files from iphone
  • Next by Date: Re: Send files from iphone
  • Previous by thread: looks like my syntax is wrong. Does not compile
  • Next by thread: Re: looks like my syntax is wrong. Does not compile
  • Index(es):
    • Date
    • Thread