Monday, November 28, 2011

Updating Xcode from 4.1 to 4.2.1

Apple's Xcode has an update available from the App Store.






Monday, August 22, 2011

Nightmare on Distribution Street

Unable to build distribution on Xcode 4.1

Settings:

X Code Version: 4.1

OS Version: Mac OS X 10.7 (Lion)


Sunday, August 21, 2011

Application Launch Images




.png

The portion of the filename is either the string Default or a custom string that you specify using the UILaunchImageFile key in your application’s Info.plist file. The portion is the optional string @2x and should be included only for images intended for use on Retina displays. Other optional modifiers may also be included in the name, and several standard modifiers are discussed in the sections that follow.

Device

Portrait

Landscape

iPhone and iPod touch

320 x 480 pixels
640 x 960 pixels (high resolution)

Not supported

iPad

768 x 1004 pixels

1024 x 748 pixels




Modifier

Description

-PortraitUpsideDown 

Specifies an upside-down portrait version of the launch image. A file with this modifier takes precedence over a file with the -Portrait modifier for this specific orientation.

-LandscapeLeft 

Specifies a left-oriented landscape version of the launch image. A file with this modifier takes precedence over a file with the -Landscape modifier for this specific orientation.

-LandscapeRight 

Specifies a right-oriented landscape version of the launch image. A file with this modifier takes precedence over a file with the -Landscape modifier for this specific orientation.

-Portrait

Specifies the generic portrait version of the launch image. This image is used for right-side up portrait orientations and takes precedence over the Default.png image file (or your custom-named replacement for that file). If a file with the -PortraitUpsideDown modifier is not specified, this file is also used for upside-down portrait orientations as well.

-Landscape

Specifies the generic landscape version of the launch image. If a file with the -LandscapeLeft or -LandscapeRight modifier is not specified, this image is used instead. This image takes precedence over the Default.png image file (or your custom-named replacement for that file).

(none)

If you provide a launch image file with no orientation modifier, that file is used when no other orientation-specific launch image is available. Before iOS 3.2, this is the only supported launch image file type and must be named Default.png.



The following device modifiers are recognized for launch images in iOS 4.0 and later:

  • ~ipad. The launch image should be loaded on iPad devices only.

  • ~iphone. The launch image should be loaded on iPhone or iPod touch devices only.

App ID



  • Bundle seed ID - 10 hex digit (generated by apple)
  • Bundle Identifier - suffix, reverse dns (e.g. com.clampett.applicationname)




Wildcard (*) can be used for Bundle Identifier to use this for a suite of applications.


Key time

Create Certificate Signing Request (CSR) from Keychain Access

xxx-Info.plist

first file opened as part of launch of an app bundle.
contains key-value entries

Bundle Identifier : com.yourcompany.${someid}
Main nib file base name:
iPhone: NSMainNibFile - MainWindow_iPhone
iPad: NSMainNibFile~ipad - MainWindow_iPad

xib are xml version of nib

Objective C Programming Language

116 pages of learning here:

PDF

Wednesday, July 27, 2011

Your certificate request has been created on disk.


Your certificate request has been created on disk.

Provisioning Instructions

Instructions (pdf)

Set up your Development Team (for those enrolled as a Company)
• Request and Authorize iOS Development Certificates
• Designate Apple Devices for your Development Team
• Create unique App IDs for your Applications
• Create and Download a Development Provisioning Profile

Saturday, July 23, 2011

For Real? - apple developer site down?

HERE
iOS Developer

NSPredicate in action...

NSPredicate *predicate = [NSPredicate predicateWithFormat:
@"self isKindOfClass: %@",
[UIButton class]];
NSArray *buttons = [self.view.subviews
filteredArrayUsingPredicate:predicate]];

OmniGraffle Update 5.3



OmniGraffle Update 5.3...

XCode 4.1 - Installed!

After installing there will be an app called "Install xcode.app". You may need to interactively run this to install the new version of Xcode.

Friday, July 22, 2011

Waste Mac App Store Preferences to reinstall app from Mac App Store

I had this problem with Xcode after installing Lion

found article HERE

MAS Update Bug
1. Quit the Mac App Store
2. Trash the following folders and files; (~ is your Home folder)

~/Library/Caches/com.apple.appstore
~/Library/Caches/com.apple.storeagent
~/Library/Cookies/com.apple.appstore.plist

~/Library/Preferences/com.apple.appstore.plist
~/Library/Preferences/com.apple.storeagent.plist

3. Restart your Mac
4. Open the Mac App Store
5. Log into your MAS account

Thursday, July 21, 2011

NSDateFormatter


NSDateFormatter *dateFormat = [[[NSDateFormatter alloc] init] autorelease];
[dateFormat setDateFormat:@"MM/dd/yyyy HH:mm"];
[dateFormatter setTimeZone:[NSTimeZone timeZoneForSecondsFromGMT:0]];
NSDate *myDate = [dateFormat dateFromString:@"07/21/2011 14:59"];

Thursday, May 5, 2011

XCode 4

Just upgraded to XCode 4


After I did the upgrade I discovered a problem with syncing my iPhone. The resolution: RE-INSTALL iTunes. :-)

Wednesday, May 4, 2011