xcode

How can I rename my project?

I have a lot of code that I've written, and finally have come up with the correct branding. How can I rename my project and app in XCode? ...

Is there a View Controller to show thumbnails like the Photos app?

I am looking to replicate the image gallery view that shows thumbnails, like in the photos app on the iPhone. Is there a view controller or any examples that anyone can provide to replicate this? ...

Correct time to delete persistent store to delete all entries of an entity

Hi, I am using an UITableViewController containing a UITableView and an UISearchTableView. The table lists e.g. 1000 entries. I want to provide the user a button to delete all entries of a specific entity. Because looping over all managed objects and saving the context takes a very long time, I thought of deleting by removing the persi...

Breaking a for loop during enumeration (Objective C)

I'm enumerating a dictionary and checking for a known date. If the exact date (both date and time) matches my known date, I want the for loop to stop enumerating. THe issue I'm having is that during the check, I break out of the if statement instead of the for loop. //known date has already been applied to self.knownDate for (id objec...

Cocoa Touch - Setting the maximum number of touches

Hey all, Anyone have any idea how to prevent an app from letting more than five touches be added? Maybe someone who has a better knowledge of the touches system can explain it to me as well. Basically, my app has 8 pushable buttons on screen, and up to 5 should be able to be pressed. If more than 5 fingers are present, the ipod touch d...

Using 1 AppDelegate for multiple .xib xcode/ipad sdk

Is it a good practice to use one main AppDelegate.h to handle all the ibaction stuff? is it even possible? if so who does one do this? my IB only lets me link to the associated .m file firstView.xib only respond to ibaction in firstView.m I want a button on firstView.xib to respond to ibaction in AppDelegate.m any thoughts? ...

Using SVN in XCode

I am sure this is something stupid, but it has me flummoxed. I have setup SVN to connect to codespaces.com and from the SCM area of xcode, I check it out and it seems to work beautifully. then I go into xcode and on the status line I get Error 170001 (Authorization failed) Description: OPTIONS of 'https://[email protected]/sm...

localNotification.soundName

localNotification.soundName doesn't support sound with duration more than 30 second Is there any way to solve this problem ? ...

Xcode PCH issue - Items in PCH Not Included in Source Files

I just created a "C++ Standard Dynamic" library project using Xcode and compiled using LLVM 2.0. I notice that the PCH file contains the line #include <iostream> but the file Test.cp also includes that #include <iostream> statement. The strange thing is that by removing the statement in Test.cp, the build fails with the error Semantic ...

LLVM Compiler 2.0: Warning with "using namespace std;"

In Xcode using LLVM 2.0, when I put the line using namespace std; in my C++ code, I get this warning: Semantic Issue Using directive refers to implicitly-defined namespace 'std' Is there a way to fix this? Why is it giving that warning? ...

iphone, addSubview show view too high up, how do I move to down ?

I'm using addSubView twice in my app and both times it adds the view too high up the view, its off the screen at the top. See below... I have load the views like this as I nothing else works, cause me problems. I just don't understand why they are showing off the screen? What do I need to do to fix this ? - (BOOL)application:(UIAppl...

iPhone, addSubView doesn't call willViewAppear ?

I'm adding a view with addSubView I'm also using the view elsewhere and presentModalViewController. viewWillAppear is called with presentModalViewController but not with addSubView. No doubt this is something obvious ? ...

xCode / declaring Static Methods in class

Anyone know how I can declare a static method for an xcode class and then use it in my project? I want to create a Common.h class and then do something like this in one of .m file Common.MyStaticMethod(); I dont want to have to instantiate and instance of Common ...

How to update cocos2d?

I've been using an older version of cocos2d for iPhone for an existing project - never change a running system. Now I'd like to upgrade to a more recent version and don't know how I should proceed about this. Just install a newer version? Will the install script overwrite all of the old files and take care of the old templates too? Or d...

Focus and zoom in on a UITextField when touched?

Hello - How in the world does one get the iPhone view to zoom in on a focused UITextField? I need to tap on a text field that I want to edit, and my view should zoom in to the tapped text field and pull up the keyboard (which it already does), similar to how many Internet text fields gain focus on the iPhone. Is this some type of overla...

#pragma mark text field delegates

what is this #pragma mark text field delegates? It is like a comment? or what is this used for? ...

How do I type using my keyboard on the iphone simulator?

I used to be able to type with my real mac keyboard after launching the iPhone Simulator. Typing with the on-screen simulator keyboard is just horrible when testing with large amounts of text. No matter what I do, I can't get my keyboard to type anymore inside the simulator. Even if I have "Simulate Hardware Keyboard" switched ON, it ju...

Applying for an iphone developer certificate from scratch?

Hello nice persons, Just got the iphone 4 and am eager to run my 'personally built' apps on it. Have looked everywhere on the apple website, but can't see where you 'sign up for a developer certificate'. Can someone explain to me how to do this, in baby steps? ...

Xcode - Equivalent to Actionscript 3 event listener

Is there a similar method in xcode to the AS3 "AddEventListener" code? I want to be able to watch for a certain thing to happen, but not use up too much memory. Basically I have 8 buttons. Obviously I can't just go through a for loop to see if a touch is on them, I need an event or a trigger or something. (The reason I don't just use ...

Setting up a git repository on a openSuse VPS

I just got hold of an openSuse 10.3 VPS. I really don't know much about Unix and SSH and this stuff but I'd like to use my server to host a GIT repository. This seems simple enough to me... Here is what I did: I SSHed into my server and installed GIT (I guess), simply by entering # yast --install git Then some magic happened and obv...