• 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 is wrong
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Something is wrong


  • Subject: Something is wrong
  • From: Agha Khan <email@hidden>
  • Date: Tue, 28 Jul 2009 12:44:36 -0700

Hi:
UIButton* pSomeBtn   = [UIButton buttonWithType:UIButtonTypeInfoDark];
CGRect SomeBtnFrame  = pSomeBtn.frame;

I am new to Objective-C
But I took granted and used -> for pointers.
Why this is working?
It should be
CGRect SomeBtnFrame  = pSomeBtn->frame;

But many places it did not complain. No error or warnings.
pSomeOtherButton->horizontalLoc = CGPointMake((bVerticalDisplay == NO) ? 410 : 250, 50.0);


Am I missing something?
Best regards
-Agha



_______________________________________________

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 is wrong
      • From: WT <email@hidden>
    • Re: Something is wrong
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: How do I insure that my NSDocument subclass is not initialized before I open a document?
  • Next by Date: Re: Something is wrong
  • Previous by thread: Re: How do I insure that my NSDocument subclass is not initialized before I open a document?
  • Next by thread: Re: Something is wrong
  • Index(es):
    • Date
    • Thread