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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to