objective-c

UIImagePickerControllerDelegate Issues...

Mysterious (at least to me) issue. Here's what I'm doing - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { UIImage *neoImage = [[info objectForKey:UIImagePickerControllerEditedImage] retain]; NSLog(@"neoImage: %@", neoImage); [self.images addObject:neoImage]...

LinkedIn SDK for objective-c (iphone)

Hello, I want to make an iphone app that can update statues and share linkes on linkedin any one can help me please thanx ...

Xcode gives 3 syntax errors dealing with Stray '\342' in program

Hello, I am working on a simple project in Objective-C in Xcode and I'm getting some stray/ errors about the following line of code: if(celsius < −273.15) { NSLog(@"It is impossible to convert temperatures less than −273.15 degrees Celsius, because this is absolute zero, the coldest possible temperature."); } It's actually...

Property List management

I am trying to create an app that has a list of users and each user will be assigned an array of data that is editable. I am new to persistent data so i thought a property list would be the easiest to use. The first view of the app will have a list of the users that have already edited at least their name, and then have "New User" for ...

Cannot get Length of a NSString - unrecognized selector sent to instance

What I'm trying to get is to search for the Anime Titile's ID, compare the length and perform some action afterwards. Here is what I get in the debugger: 2010-08-09 14:30:48.818 MAL Updater OS X[37415:a0f] Detected : Amagami SS - 06 2010-08-09 14:30:48.821 MAL Updater OS X[37415:a0f] http://mal-api.com/anime/search?q=Amagami%20SS 2010-0...

Connecting extremely basic objective-c program to iPhone application

I was wondering if it is feasible for me to connect this simple console program I have in objective-c into a very simple iPhone application. Since I have no experience using Interface Builder, I'm not sure how long it would take for me to learn it. Also, I believe my code would have to be adjusted to some iPhone APIs, rather than using...

What is the default width of a UIPickerView component?

Should be simple to find out right? Where in the Apple docs does it list any default values for various UI components? I've tried calling the protocol's method: CGFloat width = [self pickerView:pickerView widthForComponent:0]; ...but no luck. How do i find out this default value? ...

Can an iPad app directly launch another app?

Hello, I was wondering if it was possible to launch an iPad app directly from within another app. For example, could I write a login page that takes you too a desktop type page where you can select an app to run, and then launch that app as say, a new thread? I am not sure this is possible, I am just curious about the capabilities of ...

objective c: if something has something in it - do something

I want to do this: while(theString (does not have) @"this string" (in it)) { do something } ...

Getting data from the nstask - communicating with command line - objective c

I know how to send data to the task: NSData *charlieSendData = [[charlieImputText stringValue] dataUsingEncoding:NSUTF8StringEncoding]; [[[task standardInput] fileHandleForWriting] writeData:charlieSendData]; But how do I get what the task responds with?? Elijah ...

NSDictionary objectForKey throws Exception

Hello... I've build an XML Parse in Objective-C like in this tutorial: http://www.iphonesdkarticles.com/2008/11/parsing-xml-files.html I am new to Objective-C and the message objectForKey throws an NSException but i don't know whay. aPicture = [[Picture alloc] init]; aPicture.pictureID = [[attributeDict objectForKey:@"id"] integerVa...

Can a "secret" string in a compiled Obj-C app be discovered?

I need to send data from my iPhone application to my webserver, and back. To do this securely, I'm using an encryption algorithm. It requires a key that must be known by both the server and the user so that decryption can take place. I was thinking about just using a simple static string in my app and on the server as the key, but the...

Is there a preferred way of organizing your source files in a Cocoa app?

Initially, I've just been sticking with the default generated application structure of my Cocoa app: /Classes for all source files (.m and .h) /Resources for Nibs and other obvious resources However, as my application is growing, I'm finding that it's less organized then I'd like in the Classes folder with everything at the root leve...

customizing writeToFile in objectiveC

I'm interested in customizing the writeToFile method so that I can generate an XML document with a particular schema. Is there an accepted/recommended way of doing this? Any and all pointers are appreciated! ...

Allow multi-select in Settings.bundle - PSMultiValueSpecifier

Hi, does anybody know a way for allow multiple items selected for a setting in Application Settings? I know PSMultiValueSpecifier, but it only allows one and only one selected value. Thanks! ...

NSTask NSPipe - objective c command line help

Here is my code: task = [[NSTask alloc] init]; [task setCurrentDirectoryPath:@"/applications/jarvis/brain/"]; [task setLaunchPath:@"/applications/jarvis/brain/server.sh"]; NSPipe * out = [NSPipe pipe]; [task setStandardOutput:out]; [task launch]; [task waitUntilExit]; [task release]; NSFileHandle * read = [out fileHandleForReading]; ...

how to programmatically send email using objective C / cocoa

Hi I am new to MAC OS development and I want to send an email programmatically trough an application, but without using Mail app like in SBSendEmail from apple's site. I dont want to attach any attachments, just a plain text email. What is the best and easiest way to do this? is it possible to use the basic functionality from SBSendEmai...

How can I implement NORMDIST function in objective c?

I am trying to implement a NORMDIST feature in my iphone application, but I am not sure what library to import, or how I would go about doing this. If someone can point me in a direction, that would be awesome. ...

Error at NSRunLoop after returning from thread method with NSAutoreleasePool

I am getting an EXC_BAD_ACCESS error after I return from a thread method in which I have set up an NSAutoreleasePool. The place of failure is at a call to NSRunLoop. I am trying to wrap a 3rd party library consisting mainly of a class (let's call it the Connection class) and its delegate such that it will behave synchronously instead o...

iPhone OS 4.x - background TCP sockets are not responding

I'm trying to implement the background mode for VoIP application using the new mechanisms provided by iPhone OS 4.x Still without success... Application remains silent in the background mode when some data arrives from the server via TCP socket. According to the documentation the following two things have to be done: Add "voip" value...