xcode

reset build settings to default in xcode?

how do i reset my build settings in xcode? ...

Manipulating text in XCode, moving one line

In emacs I have various functions to manipulate text. Now that I'm using xcode, I suppose I could make emacs my default editor, but I want to browse obj-c objects and such, so I'd rather just implement my most used text manipulation commands for xcode. First on my list, I'd like a command that moves the text of the current line up/down...

UINavigation bar background in iPhone

I have applied following code to my application to change the navigation bar image. - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; [self.navigationController.navigationBar setTintColor:[UIColor blackColor]]; [self setNavigationBarTitle]; } -(void)setNavigationBarTitle { UIView *aViewForTitle=[[[UIView alloc] in...

Watching messages to an object in Xcode debugger

I'd like to use gdb or Xcode's debugger to watch every message sent to an object in an Objective-C 2.0 program. I don't care about arguments and such, as I just need to see every message it receives (retain, release, autorelease, etc). I also don't want to profile my entire program. Is there a means, in Xcode, to select an instance (p...

Performance difference when running app in iPhone simulator from XCode and when starting in Simulator directly

Hi, I have some strange performance differences when I run an iPhone application on the simulator a) from XCode and b) directly in the simulator. One method which calculates some stats from all objects in my Core Data DB takes less then one second when I run it directly in the simulator and it takes 22 seconds when I start the applica...

XCode 3.2 Ruby and Python templates

Under xcode 3.2 my ObjectiveC + Python/Ruby projects can still be opened updated and compiled, but you cannot create new projects. Given that all traces of ruby and python are missing from xcode 3.2 (ie create project and add new ruby/python file), is there an easy way to get the templates installed again? I found some info about copy...

how to copy files to Library or Document dir in iphone build phase?

I want copy some files to Library or Document in the "Product directory" but when i add a build phase, and select "Products Directory" in destenation and input my subdir like "Library/xxx/" when I run the app in simulator, i found nothing int the destenation and if I set destenation to "Resources", it will be there. please tell me w...

XCode 3.1: where to download?

Hi, it appears that the Apple site now only provides download for XCode 3.2, that is the Snow Leopard version. I'm running Leopard, and the installation doesn't work. Where to find previous versions? Thanks ...

Looking for a skeleton application for a native macosx application (w/ installer script, notify icon, user preferences)

I have a relatively simple application which I need to make native Mac OSX version of. I find it's easiest to learn from examples and I have never setup/developed/packaged a product on Mac yet. So, I was hoping to start from a project which has basic packaging scripts and includes as many components listed below as possible: Installe...

Parsing a string to open an URL

How would I make something in cocoa, where the user would type in "open" (space) "www.google.com" and it would open up a page that was directed to google. If the user didn't type open as the first word it would give an error. Also www.google.com could be whatever the user wants it to be. I know it may seem complicated, but it's similar t...

video playback problems in iphone

I have downloaded sample code from apple center. I also have gone through following questionhttp://stackoverflow.com/questions/370245/iphone-video-playback-coding Let me explain what my problem is.. I executes Downloaded code first time Video runs perfectly without any blinking (smooth playing) I press done button on top-left corner o...

Xcode 3.2 offline documentation?

I've upgraded to Xcode 3.2 and I'm searching for the offline documentation / reference library that was always available for the previous versions of Xcode. When I go to menu Help -> Developer Documentation I get the reference library but when I search for any term like NSViewController the pop up keeps showing up (annoyingly) telling m...

How do I create an iPhone application icon without the standard reflective look?

Xcode automatically resizes and applies a glossy look to images added as the application icon. However, I've seen some apps without the glossy finish. How do I disable the glossy icon look? Thanks! ...

rubycocoa 0.13.2, snow leopard & ruby 1.8.7

Hi, I have a rubyCocoa project, that was written for ruby 1.8.6, RubyCocoa version 0.13.2. The class tree is built from a xcdatamodel. I'm trying to migrate it to Snow Leopard. When trying to run, the program enters the endless loop, because it fails on method/property lookup. Seems, it has a problem to initialize a data model. It worke...

Why doesn't gcov report any lines being covered by my unit tests?

I am using Xcode 3.2 on 10.6, with the shipped version of gcov and default GCC compiler (both version 4.2.1). I have created a dependent Cocoa unit test bundle which is injected into my app, and followed Apple's documentation on setting up a gcov-instrumented build configuration - based on the Debug configuration which doesn't have any c...

Touch events aren't reaching touches methods?

I have a View Controller, and a UIImageView as a subview. That UIImageView also has a subview of that same type. I have: self.userInteractionEnabled = YES; set for each. My touchesEnded code was working. Any idea what would cause this? No touches are even reaching the touches events. I don't understand? Any help appreciated. Thanks...

Developer Documentation in Xcode 3.2 - a step back or is my installation screwed?

I've upgraded to Snow Leopard and Xcode 3.2 but now I don't get the usual Developer Documentation any more. When I click on 'Developer Documentation' all I get is the Xcode QuickStart guide. No search field, no browsing the library, nothing. Only if I cmd+opt+shift (?) double click on e.g. NSString the API documentation of NSString comes...

How to take test value of NSButton ?

how should i take NSButton text value , e.g if i use 2 buttons with text Click and Cancel, i want to check which button is clicked and then show a message with NSRunAlertPanel(...) which button i have clicked..what code should i write for it when the button is clicked. ...

Trim trailing spaces in XCode

Is there a way to force XCode to trim trailing whitespaces when I save file? I'm using version 3.1.3 if that matters. ...

Screen Recording? - Cocoa

Hey all, Do any of you know how to make a screen recorder from Cocoa? It would be best if someone gave me a source code. Thanks... ...