• 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
something I can't understand
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

something I can't understand


  • Subject: something I can't understand
  • From: Agha Khan <email@hidden>
  • Date: Tue, 28 Jul 2009 19:52:14 -0700

Hi:
I have a struct
@interface PngButton : UIButton
{
@public
	bool OffPos;
	CGPoint horizontalLoc;
	CGPoint verticalLoc;
}
@property (assign) bool OffPos;
@property (assign) CGPoint horizontalLoc;
@property (assign) CGPoint verticalLoc;
@end



PngButton* pPngButton = [PngButton buttonWithType:UIButtonTypeInfoDark];
[pPngButton setFrame:CGRectMake(screenRect.size.width - 70.0, 50.0, 36, 36)]; // No problem


pPngButton.verticalLoc = CGPointMake((bVerticalDisplay == YES) ? 250 : 410, 50.0);

I get an error
error: lvalue required as left operand of assignment

Why it is not working? I shouldn't get this error.
Any help will be very much appreciated.

Best regards
Agha Khan
_______________________________________________

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


  • Follow-Ups:
    • Re: something I can't understand
      • From: Kiel Gillard <email@hidden>
  • Prev by Date: About Posting
  • Next by Date: Re: About Posting, PS
  • Previous by thread: Fwd: About Posting
  • Next by thread: Re: something I can't understand
  • Index(es):
    • Date
    • Thread