I found a great tutorial, with source code, for basic usage of the iPhone Address book:
http://iphone.zcentric.com/2008/09/19/access-the-address-book/
It was very helpful for getting started with using the address book in my code.
Tags:
Apple,
iPhone,
Mac
Posted in Code, iPhone |
1 Comment » | November 11th, 2008
I recently spent about 2 hours trying to get my Distribution Provisioning Profile to show up. I followed the instructions and did everything, but still it would not show up.
Then I came across this thread: http://www.v2ex.com/2008/10/22/distribution-provisioning-profile-not-showing-up/
The first suggestion was to create a new project. I created a new project and my Distribution Provisioning profile appeared in it. Then I went back to my main project and it appeared there too. Problem solved!
Posted in Code, iPhone |
No Comments » | November 11th, 2008
Recently I was trying to figure out how to make the padding in the cells of a <mx:comboBox> smaller than the default. This proved to be much harder than I thought. But I eventually found a solution.
Here is what the default looks like:

Here is the code I came up with:
<mx:Script xmlns:mx="http://www.adobe.com/2006/mxml">
<![CDATA[
import mx.controls.Alert;
import mx.core.Application;
import mx.events.DropdownEvent;
public var app:* = Application( Application.application );
private function comboBox_open(evt:DropdownEvent):void {
evt.currentTarget.dropdown.variableRowHeight = true;
}
]]>
</mx:Script>
<mx:ComboBox id=”myComboBox” dataProvider=”{mx.core.Application.application.bbapp.cityXML}” labelField=”NAME”
close=”app.closeHandler(event)” cornerRadius=”0? dropdownStyleName=”gameSelectBox” visible=”false” fontSize=”12? open=”comboBox_open(event);”>
<mx:itemRenderer>
<mx:Component>
<mx:Label text=”{data.NAME}” paddingTop=”-5? paddingBottom=”-5?/>
</mx:Component>
</mx:itemRenderer>
</mx:ComboBox>
</mx:HBox>
And here is the final output:

Posted in Code, Flex |
1 Comment » | November 2nd, 2008