xcode

Generate class diagram for IPhone app

I am trying to find a good tool for iphone/objective-C to generate class diagram to code. I want it to be flexible to change and modify the diagram so that I can separate that diagram to many smaller ones. That means, I can show some parts of the viewcontroller interacting with model classes. It will be easier to understand and get cha...

Moving from Xcode 3.2.2 to Xcode 3.2.3?

Hi All, I developed a complete application using xcode 3.2.2 and now want submit it to app store. Before that I need to compile it using xcode 3.2.3 for iOS 4.0. I opened the xcode 3.2.2 project in Xcode 3.2.3 and tried to run on device with OS4.0, It gives me an error.. "Error from debugger: The program being debugged is not bei...

Xcode equivalent for Visual Studio environment variables

Hello, I use premake to build solutions for Visual Studio and Xcode. Does anybody knows the equivalent environment variables in Xcode for Visual Studio $(ConfigurationName) and $(SolutionName)? Thank you ...

How to set the opacity of random pixels to 0 of a UIImage?

Hi, I'm working on an iPhone app which needs to have the function to reveal an image after some actions. For example: I have 2 UIImages on top of each other. The UIImage on the back is the image to reveal. The UIImage on top needs to cover this image. I need a method that I can tell to reveal the image. So if I call the method, and le...

How do I move shortcut buttons into the GUI

Is there anyway of moving common tasks like uncommenting code (I see I can only do it for a limited selection of things like refactoring etc) onto the main GUI as a button - much like visual studio's buttons? ...

How do I get NSAssert to either crash the application or at least bring up an error dialog?

Hi, I use asserts quite a bit in my code since they are useful in debugging, but the standard behaviour of Cocoa applications is to interrupt processing and logging the assertion failure to the console.. the UI stays up neither crashing, nor bringing up an error dialog and it's often not obvious what has happened. What's the easiest wa...

Error when importing ad-hoc distribution of iPhone app into iTunes

I'm trying to make a ad-hoc beta distribution of my app, but get this error whenever I try and import it into iTunes: 'A provisioning profile named "embedded.mobileprovision" already exists on this computer. Do you want to replace it?' If I click Replace, the profile named embedded.mobileprovision appears in the iTunes profiles folder,...

Native app for iPhone!

Hi All, I want to develop a native universal app(i.e for iPhone and iPad) for my orgaization.I want to include some of the essential features of the organiztion website into my native app.For obvious reasons i cant store this huge data into iPhone itself.so data will be fetched from the server but application would be a native app.so ar...

Potential leak of an object allocated on line 576

-(void)setMedicineList:(NSString*)btnText:(NSString*)kana:(NSString*)skana { if(mdcnList != nil) { [mdcnList release]; } mdcnList = [[MedicineList alloc]getMedicineList:btnText:kana:skana]; // Memeory leak [medListView setMdcnList:mdcnList]; [btnText release]; //[mdcnList release]; // Not work } How to r...

Exception in iPhone app : Modal transition is already in progress

I have what I believe is a fairly simple application at the moment based on a few tutorials cobbled together. I'm using XCode 3.2.3 in OSX 10.6.4. It started as a standard iPhone "Window Based Application". Using interface builder I have added a Tab Bar Controller using the O'Reilly video tutorial here: http://broadcast.oreilly.com/2...

Poor performance of CGContextStrokePath while drawing a few lines and circles on iPhone

I need to draw a few hundred lines and circles on my view and they keep moving through a timer function, where I call [myView setNeedsDisplay] to update the view. I subclass (myView) from UIView and implement drawRect function to do the following ... -(void) drawRect:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(...

No more gdb in XCode console when build for iPhone simulator

Usually I use gdb backtrace to debug my application, but recently I can no longer do it when testing on iPhone simulator. The blue gdb word stops being displayed on console, and nothing happens when I type "bt" or "backtrace". I can still build and debug properly on the device though. My XCode version is 3.2.3. Is there any way to manua...

on view load, start a timer and reveal images at times in iPad app

So in my XIB I have a few graphics that need to reveal in order.. say every one second, the next thing will reveal.. I assume I am going to need something involving viewdidload, starting an NSTimer, then animate the revealing of my graphics with the timer. Can anyone please drop me a few ideas, hints or lines of code to get started? Tha...

UITableView - Appear after tap on text field.

Hello, I have a ViewController with a number of fields. One of these fields is a text box, I want the user to be able to tap on the text field and be presented with a table view where they can select from a pre-defined list and their selection will then be filled in the text box. Can anyone point me in the direction of a tutorial or som...

Adding NSArray to NSDictionary is causing problems

Hi, I'm writing an app in XCode 3.2.3 for iOS 4. In my code, I am creating an NSArray of NSDictionaries, each containing two key/value pairs, a string and an NSArray of NSDictionaries (kind of confusing, I know). Just to give you a visual, here is the structure: <NSArray> <NSDictionary> <NSString/> <NSArray> ...

Instruments says I have a memory leak, but I don't see it

I have a method to generate a Deck object (NSObject subclass with an NSMutableArray property) and it populates the array with Card objects (UIView subclass with some integer and one NSString property). When I ask for a Deck I check to see if one already exists (I think) and if so, release it before getting a new one. The code from my v...

iPad keyboard appears in wrong orientation

I have a splitView Application that has a rootViewController and DetailsViewController When the application loads the detailsViewController pops a Modal viewController that contains a UINavigationBar. The UINavigationBar has a search bar on it (set programatically). When focus is brought to the search bar the keyboard pops-up. However...

Xcode "Run With Performance Tool" disabled ?

Hi experts, I am trying to find memory leaks from my Xcode project. I don't know, what happened - I can't select anything from Run->Run with performance tool - the list of things are disabled. Please help me, I am a beginner. ...

Distinguishing development iPhone app versions

I like to keep a store-bought version of my iPhone apps on my phone so that I can reproduce any customer issues that come up, but I obviously also want to run the most current development version. I can install both (one from iTunes, one from xCode) but I'm interested in ways that I'm better able to tell the two apart. I could just chang...

Changing tint color of TTButton

Hey guys. Right now in my application, I have a TTButton. I am setting the color of the TTButton initially using stylesheet like TTCatalog. it's like [TTStyleSheet setGlobalStyleSheet:[[[CustomBadgeButtonStyleSheet alloc] init] autorelease]]; [code for initializing ttbutton here]; And then there is a class called buttonStyleSheet in t...