Re: Something is wrong
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