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

Re: Something is wrong


  • Subject: Re: Something is wrong
  • From: WT <email@hidden>
  • Date: Wed, 29 Jul 2009 00:09:23 +0200

On Jul 28, 2009, at 9:44 PM, Agha Khan wrote:

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

Kyle has already answered the specifics of your question, so I won't address that. I just want to suggest that, in the future, you post your questions with more descriptive subject titles. "Something is wrong" is not very helpful.


Keep in mind that this list has a lot of traffic and not everyone is interested in every subject. We all want to help one another here but, if I'm short on time, messages with non-descriptive subjects are the first I skip. I suspect other people in the list behave in the same way.

If you want to increase your chances of being helped, you should spend the effort to craft a better message, starting with better subject lines.
_______________________________________________


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: 
 >Something is wrong (From: Agha Khan <email@hidden>)

  • Prev by Date: NSRulerView
  • Next by Date: cocoa sheet allowing interaction with attached window?
  • Previous by thread: Re: Something is wrong
  • Next by thread: NSRulerView
  • Index(es):
    • Date
    • Thread