xcode4.4

No format security warnings in Xcode 4.4

爱⌒轻易说出口 提交于 2019-12-06 13:23:49
问题 I don't get any format security warnings ( -Wformat-security ) from this code using Xcode 4.4: #import <Foundation/Foundation.h> int main(int argc, const char * argv[]) { @autoreleasepool { // a = @"%@" or a = @"%@%@" NSString *a = [@"%@" stringByAppendingFormat:@"%@", arc4random_uniform(2)? @"%@": @"", nil]; // 50% change of crash, but no warning NSLog(a, @"Hello, World!"); } return 0; } Is this normal or have I somehow disabled this warning in Xcode? I have just created the project with

Interface Builder XIB Compiler error

匆匆过客 提交于 2019-12-06 07:38:23
I get this error message when connecting two UISwipeGestureRecognizers to a single view in my project inside of a XIB file (though not in a new project, curiously). Anybody know what this error means? It is a compile error, not a runtime error. I'm using Xcode 4.4 (this error doesn't happen on Xcode 4.5 actually). This is an error from inside interface builder. Assertion failure in -[IBCocoaTouchToolObjectPackage connectionsByProcessingConnections:], /SourceCache/IBSimulatorComponents/IBSimulatorComponents-223/IBCocoaTouchTool/IBCocoaTouchToolObjectPackage.m:1132012-08-03 16:52:01.428

New Objective-c Literals in 4.4

浪子不回头ぞ 提交于 2019-12-05 12:17:46
I can write @42 , which creates an NSNumber with int value 42. Can I do this with a variable, like @someIntVar ? Obviously I tried it and it doesn't work (which sucks because then I have to go through [NSNumber numberWithInt:someIntVar] ). Is it possible with a slightly different syntax? Richard J. Ross III I strongly suggest you read the official clang documentation on the matter: http://clang.llvm.org/docs/ObjectiveCLiterals.html But, to box a variable, or any expression, you can use parentheses: id num = @(someIntVar); 来源: https://stackoverflow.com/questions/12120153/new-objective-c

How do I change teams in Xcode 4.4

情到浓时终转凉″ 提交于 2019-12-04 16:51:31
问题 In 4.3 and under the first time you tried to do a team based action, such as refresh provisioning profiles, it would ask you to log in. It no longer does this in 4.4, it just assumes a team and refreshes... how do I teach Xcode there are multiple teams? It lists them under the teams in side bar of the organizer, but won't let me refresh their profiles, or select them when creating new profiles. To clarify, each team is under a different developer ID, and I can't find any way to log in to

How to make Xcode 4.4 debug console use a popup for autocomplete?

*爱你&永不变心* 提交于 2019-12-04 04:03:31
问题 I am using Xcode Version 4.4.1 (4F1003) on OSX Mountain Lion 10.8.1 Say you are debugging in Xcode, and you stop at a breakpoint. Then you go to the debug console prompt and start typing po loc ... For me, one of two things will happen: 1.) The console will display a popup with options (the same way autocomplete works in the main text editing window) or 2.) The console will simply automatically autocomplete to the first thing it finds. For example po localeconv() . Even though I was going to

XCode 4.4 iOS 5.1 Simulator problems

╄→гoц情女王★ 提交于 2019-12-03 10:56:31
i updated my mac book to mountain lion and Xcode to the 4.4 version. In the pre version I had no problems with closing the iOS simulator and Xcode stopped automatically the building process but now if I close the iOS simulator the build process in Xcode is still running and I have to force quit Xcode because it freezes. Does anyone recognize this bug, or can you help me to solve this problem? As a workaround, I've noticed that Running (⌘ + R) and then Bulding (⌘ + B) product succesfully starts new simulator instance, although the old instances are still frozen. I just reverted to doing

How do I change teams in Xcode 4.4

↘锁芯ラ 提交于 2019-12-03 10:36:17
In 4.3 and under the first time you tried to do a team based action, such as refresh provisioning profiles, it would ask you to log in. It no longer does this in 4.4, it just assumes a team and refreshes... how do I teach Xcode there are multiple teams? It lists them under the teams in side bar of the organizer, but won't let me refresh their profiles, or select them when creating new profiles. To clarify, each team is under a different developer ID, and I can't find any way to log in to different developer IDs to refresh the provisioning profiles. I can still log in to different ID's when

Why doesn't icon composer 2.4 support the 1024x1024 size icon any more?

核能气质少年 提交于 2019-12-02 16:26:39
The icon composer 2.2 in Xcode 4.3.3 supports the icns of 1024x1024. However, for icon composer 2.4, it doesn't support that any more. This is ironic, since Apple pushes for the retina display mbp and requires the newly submitted app to use 1024x1024 icon, but the icon composer doesn't support it any more. Is there any alternative or newly introduced solution by Apple for creating the icon of the size 1024x1024? I really don't understand why Apple is doing this. Thanks! Nick Haddad Icon Composer 2.4 doesn't support 1024x1024 size icons anymore because the workflow for creating application

Set Button selector (on click event) at runtime ? (Cocoa : Mac Project)

删除回忆录丶 提交于 2019-12-02 04:14:06
Any idea how to set button selector at runtime (on click event) for mac (Not IOS) I have a view controller with a button declared as outlet : #import <Cocoa/Cocoa.h> @interface MyView : NSView @property (assign) IBOutlet NSButton *MyBtn; i can access that buton with something like this : MyView * v; . . . [v MyBtn] i didn't find "addTarget" choice like on cocoa touch. The only choice is "setTarget(id)" I'm using Xcode 4.4.1 for osx mountain lion any suggestion would be appreciated. thanks rano You shall look at the NSControl class reference (from which NSButton inherits) for two separate

Xcode 4.4 & 4.5 freezing on project close

久未见 提交于 2019-12-02 04:00:07
Ever since upgrading to Xcode 4.4 and again upgrading to 4.5 (running on Lion), Xcode appears to freeze for about 3-5 minutes every time I close my app project or quit. During this time, activity monitor shows that the CPU is pegged at 95%, although little disk activity is occurring. I have tried uninstalling and re-installing Xcode and this didn't make a difference. Anyone else experiencing this? Any suggestions what I could do? Thanks in advance! This issue is reported: https://discussions.apple.com/thread/4160869?start=0&tstart=0 来源: https://stackoverflow.com/questions/11817771/xcode-4-4-4