xcode4

Lock file in Xcode 4

六月ゝ 毕业季﹏ 提交于 2019-12-06 02:46:29
I've got a simple question. In Xcode 3 I was able to lock a file by clicking on the little lock icon at the top of each file. I'm missing this function in Xcode 4. I think I'm just blind. Can you help me? That feature was killed (partially) in Xcode 4. Even though you can Unlock a locked file from the File menu, you cannot Lock it. Even though locking files is still possible with the Finder, it is much more troublesome when you need to lock multiple files. The long way now involves right clicking the file in the Project Navigator and selecting Show In Finder. Using Get Info (Cmd-I) will allow

Xcode4 workspace sharing projects

▼魔方 西西 提交于 2019-12-06 00:05:44
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 to let Xcode auto detect the dependencies. But, not sure what I am doing wrong, I couldn't get it to

Objective-C, Storyboard: instantiateViewControllerWithIdentifier returns nil

北城以北 提交于 2019-12-05 23:56:31
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 instantiateViewControllerWithIdentifier:@"AttractionDetails returns nil . Relevant code. First the prepareForSegue

Connecting App Delegate to Controller Class

谁都会走 提交于 2019-12-05 23:45:26
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. So, in AppDelegate, do I create a new instance of the controller class here? And if so, do I then hook

Local Repository in Xcode 4

一笑奈何 提交于 2019-12-05 18:59:03
I want to add local svn or git repository to my code in Xcode 4. I found help for adding that to a new project. But how do I add that to an old one? I started working in Xcode 3. Recently I'm using Xcode 4. I want to use Time Line. Please help. I was looking for an answer to the same problem. What I have done is followed the steps given by 'adymitruk' and in addition to that from the organizer window of XCode I selected 'Add Working Copy' option and selected my project folder where I had executed the git commands. Then I double clicked the XCode project file (file with extension '.xcodeproj')

To Get all Images from Photo Library in iphone

故事扮演 提交于 2019-12-05 18:43:58
I trying to retrive images from Photo Library & display in my app using AssetsLibrary. I got the URL path of photos but I don't know how to get photo through it. My Code is as Follow: NSMutableArray* assetURLDictionaries = [[NSMutableArray alloc] init]; void (^assetEnumerator)( ALAsset *, NSUInteger, BOOL *) = ^(ALAsset *result, NSUInteger index, BOOL *stop) { if(result != nil) { if([[result valueForProperty:ALAssetPropertyType] isEqualToString:ALAssetTypePhoto]) { [assetURLDictionaries addObject:[result valueForProperty:ALAssetPropertyURLs]]; NSLog(@"result is:%@",result); NSLog(@"asset

Can you batch change per-file compiler flags in Xcode 4?

纵饮孤独 提交于 2019-12-05 18:06:58
问题 I'd like to be able to change compiler flags for a whole set of files. When accessing per-file compiler flags from the "Build Phases" area you can change flags one at a time, however say I'd like to change the flags for every file in a group (e.g., the DropBox or Facebook SDK). Anyone know how to do this in Xcode 4.0.x? 回答1: Fortunately, YES :-) In Targets->Build Phaes->Compile Sources, mark all the files you like to set a compiler flag for, press RETURN (hit the enter key!), put the flag in

How to Enable Guard Malloc

╄→гoц情女王★ 提交于 2019-12-05 17:51:14
This is a stupid question. The documentation says: To enable debugging using Guard Malloc, choose the Run > Enable Guard Malloc option in Xcode before running your project. Building and running your application with this option enabled runs your application using the Guard Malloc library automatically. You can use this option both Mac OS X applications and also for iPhone applications running in the simulator. http://developer.apple.com/library/ios/#documentation/Performance/Conceptual/ManagingMemory/Articles/MallocDebug.html So yea yea go to Run > Enable Guard Malloc. There is no Run menu!!!!

launching iOS App from Mac OS X console

怎甘沉沦 提交于 2019-12-05 17:40:40
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 them use the device, and none of them actually spell out how the command line on the console would

Why does GDB debugger constantly freeze Xcode 4?

梦想与她 提交于 2019-12-05 17:03:54
This is a really weird bug... I'm working on an iPhone project using the camera feed and running it through an OpenGL shader to apply effects to it. However, every time I simply create a new GLfloat in the code, the debugger freezes when launched... I can't copy and paste the text because the whole of XCode freezes up, but I've cobbled it together from one of the log files: GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:56:02 UTC 2011) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it