Is the there a way to multiply each NSNumber contained in the array by 10?
Here is what I have so far:
NSMutableArray *vertex = [NSMutableArray arrayWithCapacity:3];
[vertex addObject:[NSNumber numberWithFloat:1.0]];
[vertex addObject:[NSNumber numberWithFloat:2.0]];
[vertex addObject:[NSNumber numberWithFloat:3.0]];
[vertex makeObje...
I have a UIView with an UIImageView dragged onto the view. All of a sudden, for all my xibs, the image no longer shows up. There is a blue X. However, when it builds, the image is there.
At one point, I deleted and regenerated all my images and moved some into a subfolder in Xcode. Normally, when you go to select an image for an UIImage...
I have two files independant on each other.
Let's just call it Class1 and Class2.
In Class1, I need Class2, and in Class2 I need Class1.
I have a prefix file where I include all my files, and I get some syntax errors because I do
#import "Class1.h"
#import "Class2.h"
How would I define both of them so they can use each other?
What...
Description: Out of date:'the file name' in transaction '2639-1'
Anyone can help? Thanks
...
Does anyone have any experience and/or tips wrt using Xcode to build winlib binaries on the Mac?
As part of a Windows -> Mac OS X crossplatform port i'm looking at an initial winelib port of the app before reworking the windowing to use Cocoa.
None of the winelib tutorials ive seen so far mention anything other than command line builds...
I unsuccessfully tried to use a table of 4 columns in my iphone app as storage for some data, through Core Data. I made all the steps in the tutorial, just like in Location sample code but still it refuses to work. I got the +entityForName: could not locate an NSManagedObjectModel error and after tons research I still can't pass over thi...
self.navigationItem.rightBarButtonItem.enabled = FALSE;
[activityIndicator startAnimating];
//[myview sendSubviewToBack:self.view];
//self.view.hidden= TRUE;
myview.hidden= FALSE;
activityIndicator.hidden= FALSE;
dt = [[DateTime alloc] init];
This is my method in this when user click on leftbar button of navigation this method fires he...
I can't get my head round this. When the page loads, everything works fine - I can drill up and down, however 'stream' (in the position I have highlighted below) becomes not equal to anything when I pull up and down on the tableview. But the error is only sometimes. Normally it returns key/pairs.
If know one can understand above how to...
Hi,
When using visual studio to develop c++ applications, I used to write _asm int 3; and then build the application. When the application is executed, if the code path that has "_asm int 3" is encountered Visual Studio Debugger used to get lauched and I could debug the problems.
Is there any similar approach when developing using Xcod...
In Xcode is it possible to build a clean version of my project and remove any saved property lists associated with it?
I'm refactoring my code constantly and the old property list that gets saved is causing my app to crash because the data has become old and rotten.
...
Hey guys I need to send the content of an NSMutableArray through email. I have a mailing function but I'm not sure on how to place the content of the array into a NSString to be displayed on the email under each other. Is there a way to place all the content of the array into the string with maybe HTML nextline command between each array...
Hi guys,
I wanted to know if theres a single method or way that will help me replace strings for specific characters.
like MALE - M
FEMALE - F
CHILD - P
The longer way out is this..
[str stringByreplacingOccurencesOfString:@"MALE" withString:@"M"];
[str stringByreplacingOccurencesOfString:@"FEMALE" withString:@"F"];
[str stringByre...
Hi everyone,
I've been trying to setup Xcode with Perforce for about 7 hours now and managed to get the Perforce Repository Authenticated within Xcode. The problem I have is, within the repositories window, I don't see any directories for me to check out. I can see the p4root login and client are ok with the tick on the repository log.
...
Using the Pre Release Xcode 3.2.3 I get this as a Startup Project
What should I chose / do to great a project that can have both iPad and iPhone as a target (not showing the iPhone App on iPad but a real iPad View)?
Thank you.
To avoid problems:
iPhone OS 3.1.3 is the latest release on iPhone
iPhone OS 3.2 is the latest release...
I can't figure this out and I thought that someone might run through the same thing.
I have Xcode 3.2.3 (Pre Release with OS 4 beta) and I started to create my application, after the final touches and everything worked ok, I changed the Simulator - 4.0 to Simulator - 3.1.3 (latest iPhone OS) and I could never start my app again :-(
Doe...
Hi
This is not an actual Xcode error message, it is a warning that has been haunting me for
a long time. I have found no way of removing it and I think I maybe have overstepped some unwritten naming convention rule.
If I build a class, most often extending NSObject, whose only purpose is to do some task and report back when it has data...
I have custom Makefile and External build target in Xcode.
When I click "Build" it runs "make"
When I click "Clear" it runs "make clean"
How to run "make install" (or any other target) from Xcode?
(btw, this is AVR project and xcode project file was created using avr-project tool shipped with Crosspack-AVR)
...
I recently downloaded the iPhone SDK 4 along with Xcode and neglected to install 3.0 and 3.1. I've since deleted the install package. I of course can re-download the whole package, but for future reference, I wonder if you are able to download individual SDK versions separately and independent of Xcode, like you would with almost any ope...
I'm trying to debug an issue that only occurs when my iPhone app receives a push notification.
The trouble is I can't figure out how to get a debugger, or even view any NSLog output, when my app is launched in this way. Xcode gives me a debugger and the gdb console when it launches an app for me.
So how do I run my app in the debugger...
I'm using xcode and I was wondering if there was a way to view all instance variables in my project from one "central" file?
...