Questions tagged [xcode4.2]

the Oct. 12, 2011 release of Apple's integrated development environment (IDE) for Mac OS X and iOS. USAGE NOTE: Use this tag only for questions that are specific to this version of Xcode, and not for general Mac or iOS programming topics. Use [cocoa] for Mac programming questions, and [cocoa-touch] or [ios] for iOS programming questions.

Xcode 4.2, Apple's integrated development environment (IDE) for Mac OS X and iOS, was released October 12, 2011.

Use this tag for questions that are specific to Xcode 4.2, and not for general programming questions. Use the or tags for macOS programming questions; use the or tags for iOS (formerly iPhone OS) programming questions; for questions about the Objective-C language and its features, use the tag; also, avoid adding the Xcode tag if your question would stay the same if you would use any other editor for writing your program code.

New Features:

  • support for Mac OS X 10.7 Lion and iOS SDK 5.0
  • Apple LLVM compiler 3.0 with Automatic Reference Counting (ARC)
  • LLVM compiler support for C++’0x features using the new LLVM libc++ standard library
  • Storyboarding support to design multi-view workflows for iOS
  • OpenGL ES graphical debugger
  • Location Simulation

Note:

Xcode 4.2 is the last version to support Mac OS X 10.6 (Snow Leopard), but is only available to registered developers; without an account, 3.2.6 is the latest download that appears for Snow Leopard.

Source: Release notes for Xcode 4.2

See for more information.

1965 questions
53
votes
6 answers

How to visually create and use static cells in a UITableView embedded in a UIViewController

I'm using XCode 4.2 and have built my UI using Storyboards. I need to create a view that has content above and below a UITableView and I can achieve this by using a UIViewController. A UITableViewController does not let you add content above or…
StinkyDuck
  • 581
  • 1
  • 5
  • 6
53
votes
2 answers

Unlocking Focus on wrong view ((null)) under OS X 10.7.2

I have a Cocoa app that has an NSWindowController controlling an NSWindow with an NSComboBox in it. Nothing special, and it worked fine until upgrading to OS X 10.7.2. Now I get the following exception, which occurs only once, when the window…
alexantd
  • 3,543
  • 3
  • 27
  • 41
48
votes
3 answers

No exception stacktrace in console under Xcode 4.2/iOS 5?

Under Xcode 3.x and iOS 4, if an unhandled exception is signaled in the emulator there is an exception stack trace (similar to Java's) produced in the console output. When I raise an unhandled exception in iOS 5 under Xcode 4.2, running the exact…
Hot Licks
  • 47,103
  • 17
  • 93
  • 151
48
votes
4 answers

How to use custom fonts in iPhone SDK?

I Want to implement custom font in my app. So i have added that in my Project Source code. I don't want to set that programatically. Is this possible that I can do this with setting properties in xib?
Patel Manthan
  • 687
  • 1
  • 6
  • 10
45
votes
4 answers

Why is my XIB modified every time I open it in IB?

I click on the XIB via the project navigator. It opens up and immediately changes the icon to gray showing I have unsaved changes. If I save changes, click on a different file and click back to re-open it, more changes. Always modifies on open. It…
DBD
  • 23,075
  • 12
  • 60
  • 84
43
votes
7 answers

Programmatically set image and text on UIButton

I need to create button programatically with an image for normal and highlighted state as well text. I cannot build it using Interface Builder, because I need to create buttons over a UIScrollView. Here is the code I have so far: - (void)loadView { …
Haris Hussain
  • 2,531
  • 3
  • 25
  • 38
43
votes
4 answers

Xcode - Change Company Name and Username

I want to change this: // // ViewController.h // MyApp // // Created by _username on 12-04-05. // Copyright _company_name. All rights reserved. // And I tried: http://macdevelopertips.com/xcode/change-company-name-in-xcode.html and it didn't…
Jakub
  • 13,712
  • 17
  • 82
  • 139
40
votes
5 answers

Is there a command in Xcode 4.2 to swap two views in Assistant Editor mode from left to right and vice versa?

I would like to quickly swap two views from one side to the other and wonder if there is a hotkey for this functionality?
pdenlinger
  • 3,897
  • 10
  • 60
  • 92
39
votes
4 answers

Conditional segue performed on tap on UITableViewCell

I'm working on some project for iOS 5 using Xcode 4.2. I have one UITableViewController and want to perform a segue when user tap on table cell, but destination view controller depends on action performed on that cell. For example, when user tap on…
Darrarski
  • 3,882
  • 6
  • 37
  • 59
37
votes
3 answers

Xcode 4.2 iOS Empty Application and storyboards

I'm an Xcode newbie, and I'm trying to make my first training app. Since apparently Empty Application template is the only template that offers pre-integrated Core Data, I choose that. However, after that, I can't get UI to work (it remains…
Amadan
  • 191,408
  • 23
  • 240
  • 301
36
votes
4 answers

App submission failed due to icon dimensions (0 x 0)

I am trying to submit an app which is only for iPhone. The error showed " iPhone/iPod Touch: Icon.png: icon dimensions (0 x 0) don't meet the size requirement. The icon file must be 57x57 pixels, in .png format. May I know why this happens? I try…
Clarence
  • 1,951
  • 2
  • 34
  • 49
35
votes
2 answers

Displaying a Cocoa Window as a Sheet in Xcode 4 (OSX 10.7.2) with ARC

I'm trying to get a Login Window to display as a sheet from my MainWindow, but whenever I try to implement the AppKit methods an error always pops up for various indistinguishable reasons. None of the online guides out there are working, when i…
34
votes
4 answers

libz.dylib versus libz.1.2.3.dylib versus libz.1.2.5.dylib

I asked this in a comment but this seems like an issue that deserves its own question. I have a project that's shared between three different installations of XCode and two different installations of the iOS SDK. At the moment unifying the…
Hyperbole
  • 3,917
  • 4
  • 35
  • 54
34
votes
10 answers

iPhone/iPod Touch: application executable is missing a required architecture

I have an issue with xCode 4.2. I am getting this error when building: 2011-06-18 13:35:49.839 Validation[4110:607] *** Warning: Defaulting to the standard codesign tool warning: iPhone/iPod Touch: application executable is missing a required…
Doz
  • 7,009
  • 12
  • 61
  • 69
33
votes
1 answer

@autoreleasepool without ARC?

I'm new to Xcode 4.2, and I'm not yet fully up to speed on ARC. However, I did read that @autoreleasepool replaces the manual use of autorelease pools and does some special magic under the hood to play nice with ARC. Yet, when I start a new project…
fieldtensor
  • 3,972
  • 4
  • 27
  • 43