how to compare to strings if they are not equal
how would i compare two strings if they are not equal? i cannot use isEqualToString ... i am very new to the language..plz help thanks!!! ...
how would i compare two strings if they are not equal? i cannot use isEqualToString ... i am very new to the language..plz help thanks!!! ...
I am animating two images but unable to collide them. I tried if(CGIntersectsRect([bullet frame],[enemy frame]) { NSLog(@"ïntersect"); } bullet frame and enemy frames are different,may be bcoz [bullet frame],[enemy frame] is giving their initial position and not their current position.If any one knows the answer plz reply me as soon as...
for (int i = 0; i < nCount1; i ++) { CGatewayMedia * media = (CGatewayMedia *)[GatewayDetail.mcMutableArray objectAtIndex:i]; NSString * zStr1 = [[NSString alloc]initWithFormat:@"%d",media.mnSNO]; NSString * zStr2 = [[NSString alloc]initWithFormat:@"%@",media.mcstrMOrgName]; NSString * zStr3 = [[NSString a...
I've always avoided underscores in my variable names, perhaps because its just not what was done back in my learning Java in college days. So when I define a property in Objective C this is what I naturally do. //in the header @interface Whatever { NSString *myStringPorperty } @property (nonatomic, retain) NSString *myStringPropert...
I am writing a game in which there are thumbnails of mini games displayed in a grid, CCSprites in a NSArray. One of these is then scaled and moved to create a zooming effect. Once it has zoomed in it is hidden to reveal the actual "live" minigame (a CCNode), which has been added to the scene invisibly while the zooming animation took pla...
Is there a way to implement custom Auto-completion for a UITextView, say by giving it a NSDictionary or NSArray of Strings to watch out for? ...
Hi, I'm trying to consume an ASP.net Web service, and found a utility called WSDL2ObjC. Now I'm trying to use it, and basic use is working (asking for simple data types, such as booleans or strings), but now I'm requesting an array of the "EmailServiceSvc_Email" structure, which contains "subject", "from" and "message" properties. The...
I have a loading overlay which is supposed to block all the AppKit Controls off untill loading is done. However the view seems to be passing all the mouse events to the underlying layers. How to disable that? ...
While declaring a simple UIAlertView, with the following code, I get the above mentionned error on that line: UIAlertView * alerteken = [[UIAlertView alloc] initWithTitle:@"Email" message:@"Please enter the @mailinator.com email address you want to read:" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Ok"]; What am I d...
Hi guys, Can any one suggest what are the audio files can we play With AVAudioPlayer in Iphone sdk? Can we play .3gp file in AvAudioPlayer? Hope I will get a quick response from your side. Thanks in advance, Monish. ...
how can I get notified at my app while the specify application is opening or closing? for example, I need do something in my app when iTunes is quitting. ...
I have a quite a big iPad app and when I run the app in xcode debug mode, it shows about 50 MB in the Activity Monitor and memory grows slowly. (About 0.1 MB per 30 seconds approximately.) But when I run the app directly from the simulator(which is already installed in the simulator) , it shows about 10 MB in the activity monitor and mem...
- (void)dealloc { [super dealloc]; [receivedData release]; receivedData = nil; } or - (void)dealloc { [receivedData release]; receivedData = nil; [super dealloc]; } ...
Hi, I have an heterogeneous tableView with an entire section made up of UITableViewCells with a UITextField control on each one's contetView. The problem is that I see text written in textfields being mixed when I scroll. I've seen many times before this problem and though it's deprecated I solved by assigning a different cellIdentifi...
Hi guys, I'm new to Objective-C, so please don't judge me too much. I was wondering: Is there an equivalent of the C++ STL pair container I can use in Objective-C? I want to build an array that contains an NSInteger associated to an NSBool. I know I could use an array with each entry being a NSDictionary with a single key-value but I f...
I have an enum declaration using bit flags and I cant exactly figure out on how to use this. enum { kWhite = 0, kBlue = 1 << 0, kRed = 1 << 1, kYellow = 1 << 2, kBrown = 1 << 3, }; typedef char ColorType; I suppose to store multiple colors in one colorType I should OR the bits together? ColorType pinkColor = kW...
I need to be able to get the weekday from nsdate, i have the following code and it always return 1. I tried to change the month, i tried everything from 1 to 12 but the result of the week day is always 1. NSDate *date2 = [[NSDate alloc] initWithString:[NSString stringWithFormat:@"%d-%d-%d", 2010, 6, 1]]; unsigned units2 = NSYearCalendar...
I'm trying to replicate at least some of the functionality of Workgroup Manager using the NSOpenDirectory.h APIs available in 10.6. I can communicate with my local directory just fine but no matter what I try I can't establish a connection to a remote machine. Here's my ODSession and ODNode setup code. NSDictionary *options = [NSDic...
Hi guys, i just started two weeks ago with ObjectiveC and i'm a complete noob so, go easy on me. I want to load a tableView with the following: Upcoming Events .event4 xx/xx/2010 .event5 xx/xx/2010 Pass Events .event1 xx/xx/2008 .event4 xx/xx/2008 .event5 xx/xx/2008 i'm using Core Data with a fetchedResultsCOntroller. What's the b...
HI, i am creating an login screen to my iphone application. i am sending the username and password to php using NSURLConnection method. i can successfully send login details to php. My php page returning status values based on the login details. (status =OK / Fail , redirectionUrl=http://www.balalaa.com) In DidReceiveData method if i c...