• 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: "John C. Randolph" <email@hidden>
  • Date: Sat, 04 Jul 2009 00:03:35 -0700


On Jul 3, 2009, at 9:29 PM, Agha Khan wrote:

	NSNumber* aNumber = [Aobject _Edge] numberWithInt:j;
   // looks like my syntax is wrong. Does not compile

Objective-C isn't smalltalk. All message expressions have to be enclosed in square brackets:


	NSNumber* aNumber = [[Aobject _Edge] numberWithInt:j];

-jcr
_______________________________________________

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: Re: looks like my syntax is wrong. Does not compile
  • Next by thread: NSData. add 6 bytes to NSData
  • Index(es):
    • Date
    • Thread