xcode4.3

localStorage not persisting in OSX app (Xcode 4.3)

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-30 19:22:55
From what I have seen, if you are building a OSX desktop HTML5 app and want localStorage to persist in your WebView wrapper, you need to do something like this: WebPreferences* prefs = [webView preferences]; [prefs _setLocalStorageDatabasePath:@"~/Library/Application Support/MyApp"]; [prefs setLocalStorageEnabled:YES]; Taken from: How do I enable Local Storage in my WebKit-based application? But this doesn't seem to work for me in Xcode 4.3. Instead I get "No visible @interface for 'WebPreferences' declares the selector '_setLocalStorageDatabasePath:' "No visible @interface for 'WebPreferences

Where did Instruments go in Xcode 4.3?

假如想象 提交于 2019-11-30 17:06:04
I have just updated from 4.2 to Xcode 4.3 and "Instruments" is no longer there. I tried to run it from Launchpad but was informed that this is not possible because Instruments is in the trash bin. Xcode 4.3 uninstalled 4.2 but it seems it did not bother installing a new version of Instruments. sch You can launch Instruments from within Xcode. It is no longer in the /Developer folder but in /Applications/Xcode.app/Contents/Developer . From the menu bar, choose Xcode > Open Developer Tool > Instruments . If your goal to profile your code with Instruments after all, choose menu "profile" from

Xcode 4.3 and iPhone Simulator 4.2

北城以北 提交于 2019-11-30 08:59:15
Is there a way to install iPhone Simulator 4.2 in Xcode 4.3 for Lion? I only can find how to install it in Xcode 4.2, but not Xcode 4.3 for Lion. Asilisoft I have found a way to install iPhone simulator 4.2 to Xcode 4.3: Follow the instructions by Parth Bhatt, but install the simulator in a temporary folder ('Developer' folder doesn't exists in Xcode 4.3). Once installed, go to <tmp_dir>/Platforms/iPhoneSimulator.platform/Developer/SDKs , and you'll find a file named "iPhoneSimulator4.2.sdk". Open a new Finder window and go to /Applications and right-button on Xcode, select show the package

How to solve CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]?

泪湿孤枕 提交于 2019-11-30 08:35:16
I have an error where it crash the application when it is starting up. This is the error that i got: *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]' *** First throw call stack: (0x250b022 0x2709cd6 0x24b3a48 0x24b39b9 0x217ec0d 0x2174f55 0x158f3f7 0xbc74e 0xbe512 0xbfa26 0xbe4ad 0x224ffda 0x224f956 0x224e449 0x224ab9a 0x24df970 0x247f1c1 0x2442967 0x2441d84 0x2441c9b 0x2c0a7d8 0x2c0a88a 0x1559626 0x2aed 0x2a65) terminate called throwing an exception i tried using Exception breakpoint and it doesn't show which part of

How to incorporate storyboards into a cocos2d 2.0 project?

寵の児 提交于 2019-11-30 07:32:42
I have made a project in cocos2d 2.0 and would like to incorporate a main menu using storyboards. I have tried Jerrod Putnam's tutorial here on tinytimgames.com (I can't provide the link because new users are allowed only 2 links per post, but if you google "cocos2d storyboard" it is the first link) but it did not work for me. I followed it exactly (I think). I opened my cocos2d project and imported the files from his github, the CCViewController.m and .h and then created a new storyboard file and followed the tutorial. However when I ran it, it just started straight on my cocos2d game and not

An error occurred uploading to the iTunes store

人走茶凉 提交于 2019-11-30 07:09:42
Using Xcode 4.3.2. Since yesterday, I can't upload to ITunes Store. I can't find any reasons. Archive -> Validate... no problem. But, it is occurred error in distribute. My app is using Push. My Xcode version is 4.3.2. What do I do to escape this state? Please help me... and thank you. Yogesh Agarwal I had the similar issue..which i was able to fix using the solution mentioned here - An error occurred uploading to the iTunes Store - Please upgrade Java for quick reference I am adding the solution here also open terminal window and execute below lines of code cd /System/Library/Frameworks

How to encode and decode Files as Base64 in Cocoa / Objective-C

大兔子大兔子 提交于 2019-11-30 05:29:52
I am currently trying to get a small soap client to work, which includes to send a certificate file within the xml of the request. I have no trouble getting the file into an NSData object - but then I have to convert it to some Base64 String. Environment is Mac OSX, Xcode 4.3. I have found a lot of older posting dealing with that - but the best I found was some code that made use of OpenSSL libs and where containing loads of deprecated methods. So, my question is as follows: Is there a better way than to use the OpenSSL libs? If yes, do you perchance have some URL or more recent code scraps?

localStorage not persisting in OSX app (Xcode 4.3)

眉间皱痕 提交于 2019-11-30 03:47:15
问题 From what I have seen, if you are building a OSX desktop HTML5 app and want localStorage to persist in your WebView wrapper, you need to do something like this: WebPreferences* prefs = [webView preferences]; [prefs _setLocalStorageDatabasePath:@"~/Library/Application Support/MyApp"]; [prefs setLocalStorageEnabled:YES]; Taken from: How do I enable Local Storage in my WebKit-based application? But this doesn't seem to work for me in Xcode 4.3. Instead I get "No visible @interface for

Where did Instruments go in Xcode 4.3?

試著忘記壹切 提交于 2019-11-30 00:27:30
问题 I have just updated from 4.2 to Xcode 4.3 and "Instruments" is no longer there. I tried to run it from Launchpad but was informed that this is not possible because Instruments is in the trash bin. Xcode 4.3 uninstalled 4.2 but it seems it did not bother installing a new version of Instruments. 回答1: You can launch Instruments from within Xcode. It is no longer in the /Developer folder but in /Applications/Xcode.app/Contents/Developer . From the menu bar, choose Xcode > Open Developer Tool >

How to solve CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]?

▼魔方 西西 提交于 2019-11-29 11:47:19
问题 I have an error where it crash the application when it is starting up. This is the error that i got: *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]' *** First throw call stack: (0x250b022 0x2709cd6 0x24b3a48 0x24b39b9 0x217ec0d 0x2174f55 0x158f3f7 0xbc74e 0xbe512 0xbfa26 0xbe4ad 0x224ffda 0x224f956 0x224e449 0x224ab9a 0x24df970 0x247f1c1 0x2442967 0x2441d84 0x2441c9b 0x2c0a7d8 0x2c0a88a 0x1559626 0x2aed 0x2a65)