How to Connect to MS SQL Server in Objective-C/Cocoa on Mac?
I need to write a Mac Objective-C/Cocoa app that connects to a remote MS SQL Server. How to do it? Also, how to run SELECT/UPDATE/INSERT/DELETE in this connection? ...
I need to write a Mac Objective-C/Cocoa app that connects to a remote MS SQL Server. How to do it? Also, how to run SELECT/UPDATE/INSERT/DELETE in this connection? ...
Is it possible to set the text field for a UITextField for multiple objects from within a loop using setValue:forKey:? I am a little confused if I should be somehow specifying "text" in the property name, or if I am missing something else? // INTERFACE @property(nonatomic, retain) IBOutlet UITextField *textFieldBit_01; @property(nonatom...
Hello, I'm using lame encoder to convert a wav to an mp3 in mac osx using objective-c and cocoa. I'm a complete novice when it comes to audio encoding and my C skills aren't great. Regardless I've stumbled along and gotten to the actual encoding stage, which is where i'm stuck. From the code I've studied, it looks like I should be usin...
I've got a problem with a NSString in my app. I've defined it in the header file of my view controller. NSString *locationCoordinates; and I set its value in a -(void) method. - (void)locationUpdate:(CLLocation *)location { <...> NSArray *locArray = [locString componentsSeparatedByString:@", "]; NSString *xCoordinat...
Hi, I am new to iphone development, i have created my project in view based application and i want to add tabbar controller in my view. I have added tabbarcontroller using interface builder in my view and i cannot see the tabbar in my view. Plz how can i add tabbarcontrolller in view. So plz guide me. thanks. ...
Hi, I've got a class called RootViewController with this: Test *myLevelObject = [[Test alloc] init]; [myLevelObject afficher]; It is supposed to call my method -[ Test afficher] but there is no warning or error and it does enter the method. Any ideas? thx Declaration of test class : test.m : #import "Test.h" #import "RootViewCon...
Preface: I have two entities defined as a one-to-many relationship: A <<-------> B. B's relationship to A is called myAs and is a to-many relationship with Nullify as the Delete Rule. The inverse relationship from A to B is a to-one relationship with Cascade as the Delete Rule. I have implemented validateForDelete on the B class like s...
Hello guys! Is there a way to set manually the orientation of UIImage? Or create with orientation or somehow? Thanks! ...
i want to load html file from Resources in WebView. in Resources i have: test.html testfolder->test.html this code works perfectly: [[webview1 mainFrame] loadRequest: [NSURLRequest requestWithURL: [NSURL fileURLWithPath: [[NSBundle mainBundle] pathForResource:@"test" ofType:@"html"]]]]; and this one - crash the app (SIGABRT)...
I'd like to make a Thread with multiple arguments. Is it possible? I have the function: -(void) loginWithUser:(NSString *) user password:(NSString *) password { } And I want to call this function as a selector: [NSThread detachNewThreadSelector:@selector(loginWithUser:user:password:) toTarget:self withObject:@"someusername" withOb...
Hello All, I'm actually starting to loose the will to live, this piece of code is driving me nuts! I'm trying to get the content of mathspractice.txt into *myLabel I'm using an array which is: -(void)loadText { NSArray *wordListArray = [[NSArray alloc] initWithArray: [[NSString stringWithContentsOfFile:[[NSBundle mainBundle...
Is this the correct way to pop objects off the front of an array. I was just curious as I was thinking there might be a method for NSMutableArray that returned a retained object. Just curious if I am getting this right? // PUTTING OBJECTS IN NSMutableArray *fgStore = [[NSMutableArray alloc] init]; for(int counter=1; counter<=5; counter+...
This question was already asked here: http://stackoverflow.com/questions/1720316/nsnetservice-ip-address and here: http://stackoverflow.com/questions/938521/iphone-bonjour-nsnetservice-ip-address-and-port I've used both of those to get where I'm at now. My problem is the following method I have doesn't quite work: - (NSString *)getSt...
My code compiles fine but doesn't show the text from mathspractice.txt -(void)loadText { NSBundle *bundle = [NSBundle mainBundle]; NSString *textFilePath = [bundle pathForResource:@"mathspractice" ofType:@"txt"]; NSString *fileContents = [NSString stringWithContentsOfFile:textFilePath]; NSArray *mathsPracticeTextArray = [[NSArray al...
Hey When I run my application it shows one warning message: warning:passing argument 1 of 'presentModalViewController:animated' from distinct objective - c type How do I resolve this warning? I've used presentModalViewController:animated many times previously in my application. Please help me. Thanks in advance ...
I have an application that's laid out using an UITableView. The interface takes up more than just the screen, so there's some area that can be scrolled to. I would like some screenshots of the entire view (including the non-visible area) to use for documentation and soliciting feedback from my customer. Is there programmatic way to get ...
Hello, I have been google-ing and researching for an answer on how to do a simple RSA encryption using objective-c on an iphone. The main problem i have is that i have been supplied the Exponent and Modulus as an NSData object and i need to then convert them to a SecKeyRef object in order to perform the RSA encryption. Does anyone have...
Hi, When i add a new subview, i cant immediately release the controller after displaying. How should i release this viewController? I was thinking about using a property for the viewController, and use delegation to notify for removing the view and releasing it? Is this the best way to do it? or should i do something with autorelease?...
I am developing an app which generates UISliders. There is no problem when testing on the iPhone 3gs and the iPod 3g, but when testing on any older models, the thumb image on the sliders randomly disappear. Throughout the program, I am changing the thumb images back and forth and I am wondering if that is creating a conflict of too many ...
I have an NSDate and a duration. I need to get the time after the duration... Given: NSDate is 2010-02-24 12:30:00 -1000 duration is 3600 secs I need to get 2010-02-24 13:30:00 -1000 Actually I am looking for the time, but I think I know how to do that if I can get the NSDate object reflecting the new time. I thought dateWithTime...