xcode4

Xcode4 workspace sharing projects

我是研究僧i 提交于 2019-12-10 10:16:33
问题 I am trying to use the new Xcode4 workspace feature to migrate some Xcode3 projects that has dependencies between them. I have a project which creates a static library and then an application project which depends on the static library. So, as the guide mentioned, I created a new workspace and dragged both the projects into the workspace. However, when I build my application, it's unable to find the header files from my static library. I get "No such file or directory" error. My intention is

Creating NSWindow in fullscreen mode

天大地大妈咪最大 提交于 2019-12-10 10:15:34
问题 Is there a way to create a NSWindow into fullscreen mode? NSWindow has the ToggleFullscreen: selector but then it creates the window normally and animates it to the fullscreen version which isn't what I want. Any other way of doing it? 回答1: First find the screen size NSRect screenRect; NSArray *screenArray = [NSScreen screens]; unsigned screenCount = [screenArray count]; unsigned index = 0; for (index; index < screenCount; index++) { NSScreen *screen = [screenArray objectAtIndex: index];

Connecting App Delegate to Controller Class

喜欢而已 提交于 2019-12-10 10:15:09
问题 I'm stuck on this step of developing an XCode application: https://developer.apple.com/library/mac/#documentation/General/Conceptual/Mac101/Articles/07_WhereNext.html What I'm confused about is the role of the AppDelegate class that's created by default when creating a project initially in XCode 4. If I implement a custom controller, let's use the example link above and call it TrackController. Do I make that controller the app delegate? It seems any tutorial I read isn't very clear on this.

Objective-C, Storyboard: instantiateViewControllerWithIdentifier returns nil

半世苍凉 提交于 2019-12-10 10:07:49
问题 I have a UITableViewController with a storyboard push segue linking from the prototype cell to a detail page, a regular old UIViewController. In the storyboard, the detail ViewController has an identifier, and the segue has an identifier which is the same as the detail identifier except that the first letter is lowercase. Furthermore, the detail ViewController has a "custom class" ( AttractionDetailViewController ) selected in the class pulldown. Doesn't work. The problem is that

launching iOS App from Mac OS X console

眉间皱痕 提交于 2019-12-10 07:46:22
问题 in order to automate testing an application, I want to repeatedly launch an iOS app with different arguments to it's main function from my mac; for simplicity let's just say it takes a file as argc and I have 100 files that I need to test. In theory, all I'd want to reproduce is the behaviour of xcode build & run - on the device, not jailbroken ; the app is closely tied to the hardware, so the simulator alone will not suffice. There are a couple of pages that do something similar, but none of

Set current user location in iPhone simulator

只谈情不闲聊 提交于 2019-12-10 06:05:51
问题 Is there a way to set the current user location in iPhone simulator on Xcode 4?, I want the simulator to show a different location other than Cupertino. 回答1: Yes, from the simulator's menu choose Debug > Location > Custom Location... . 回答2: You can Simulate Location by selecting Product -> Debug -> Simulate Location and select Location option from Xcode tool. This is shown in following figure: 回答3: You can add GPX file to get the current location on simulator. 来源: https://stackoverflow.com

How to add an external project to Xcode 4?

人盡茶涼 提交于 2019-12-10 05:01:24
问题 I am stuck with an issue of including an project in Xcode 4. I have all the document but it works with Xcode 3 and not Xcode 4. How to add ZXingWidget.xcodeproj to my project in Xcode 4? 回答1: In Xcode 4, you're mostly meant to create a new Workspace to which you can add multiple projects. From the main menu: File > New... > New Workspace... Once you create your new workspace, drag the Xcode project files into the project navigator of the newly-created workspace. Drop the first one anywhere in

Xcode4 with Mac OS X 10.4 SDK

烂漫一生 提交于 2019-12-10 04:59:35
问题 In the latest iteration of Xcode, Xcode 4.0, the 10.4 SDK is no longer included. However, I still need to support 10.4 and PowerPC builds. I have installed latest Xcode 3.2.6 which still includes 10.4 support. Then I installed Xcode4. Has anyone found a simple way to "cheat" and get Xcode4 to use 3.2.6's SDKs? 回答1: Yes, I did :) See here. 回答2: XCode 4.0 supports deploying to Mac OS X 10.4 right out of the box, so you shouldn't have to do anything special. For example, I created a project then

No call stack on Exception in xCode 4

£可爱£侵袭症+ 提交于 2019-12-10 04:53:48
问题 I got an exception I can't back trace. I would like to know where the exception is thrown. Is there an option for that in xCode 4.2? As you can see the call stack is not much of a help. The only thing I know is that Iam trying to access an item in a NSArray at a faulty index. All ideas are welcomed. Thanks! 回答1: Set a breakpoint on objc_exception_throw and that will stop the program on that message. EDIT ... Or just set the Exception Breakpoint in Xcode. Too used to doing this stuff directly

How do I create a user interface from an entity in Xcode 4?

拈花ヽ惹草 提交于 2019-12-10 04:49:40
问题 I've been experimenting with core data for a couple of days and have spent the past couple of hours trying to work out how to create a UI from an entity in xcode 4. According to the books I've been reading you have to option drag the core data entity into a window in interface builder but when I do this in xcode 4, nothing happens. The apple documentation has been no help since it hasn't been updated for xcode 4. I'm sure it's something really obvious but I just can't figure it out. 回答1: Your