objective-c

objective-c audio chat application

Is there any open source app out there that can do a simple audio chat? like share the ip of the other computer (not on same network) and transmit audio back and forth? no compressing, ect? Elijah. ...

NSKeyedArchiver archivedDataWithRootObject:

Is the parameter for NSKeyedArchiver archivedDataWithRootObject: supposed to be the array I am trying to save, or the array converted into NSData? ...

How to erase an object saved with NSUserDefaults from disk

Let's say I saved data to disk like this: [[NSUserDefaults standardUserDefaults] setObject:[NSKeyedArchiver archivedDataWithRootObject:theArray] forKey:@"savedArray"]; How can I erase that from disk? ...

Why does this crash?

I made a class. This is the h file. // MyClass.h #import <Foundation/Foundation.h> @interface MyClass : NSObject <NSCoding> { NSString *string1; NSString *string2; } @property (nonatomic, retain) NSString *string1; @property (nonatomic, retain) NSString *string2; @end This is the m file. // MyClass.m #import "MyClass.h"...

Why does Apple recommends to create modal navigation controllers programmatically?

"When presenting a navigation controller modally, it is often simpler to create and configure your navigation controller object programmatically. Although you could also use Interface Builder to do so, doing so is generally not recommended." If fact, because my navigation controller is simple, I would rather customise the view in IB! ...

bayesian network library for iphone?

i m looking for a bayesian network library that work on the iphone. any tip ? ...

How would I reverse this equation?

I’m using this equation to convert steps to estimated calories lost. I now need to do the opposite and convert total calories to estimated steps. This is the equation I’m using for steps to calories: +(CGFloat) totalCalories:(NSUInteger)TotalStepsTaken weight:(CGFloat)PersonsWeight{ CGFloat TotalMinutesElapsed = (float)TotalStepsT...

iphone: appID creation problem ?

Whenever I create an app ID on my provisioning profile, the 10 digit bundle seed ID keeps getting imported in front of it... e.g. YVW2UMA3HV.com.yourcompany.ytj ..As a result, the project i'm trying to compile (which as bundleID com.yourcompany.ytj gives an error in Application Loader. ..Is there a way to create an appID without the '...

HTML and NSString

I use the youtube api to get descriptions from videos but sometimes not the full description shows up becuase of a @amp; how do I fix this? BTW I use NSXMLParser. ...

copy smaller array into larger array

I have two arrays of chars, allocated as follows: unsigned char *arr1 = (unsigned char *)malloc((1024*1024) * sizeof(char)); unsigned char *arr2 = (unsigned char *)malloc((768*768) * sizeof(char)); I would like to copy arr2 into arr1, but preserve the row/column structure. This means that only the first 768 bytes of each of the fir...

Convert MongoDB BSON ObjectId (oid) to generated time in Objective-C?

I've found this: function: http://github.com/timburks/NuMongoDB/blob/master/src/bson.c#L128 bytes: http://github.com/timburks/NuMongoDB/blob/master/src/platform_hacks.h#L55 struct: http://github.com/timburks/NuMongoDB/blob/master/src/bson.h#L70 But how exactly would I use this for my iPhone app that gets the oid as a string from the se...

setter and getter methods

I know that you use @synthesize to create setter and getter methods, which makes things easier because then you don't have to write your own. There are certain places where you have to use self.property instead of just property in order to make use of the setter and getter methods, such as in dealloc and initWithCoder. This tells me th...

Xcode send data from text input through a post function in php

Is it possible to send text from an xcode input and have the data sent through a php function? ...

Generate a JSON string using Objective-C

I know there are a few frameworks to parse JSON, but how can I generate a JSON string in Objective-C? Will it be something I would have to write myself, or is there something simple already out there? ...

How to pass an object to a view controller

How do you pass an object to a view controller, right before you push the view to show it? ...

Is it possible to declare a chain of super classes in interface declaration?

This may be a silly question but I haven't found any information on it. Let's say several of the classes in my program derive from 'MySubView' which is derived from another class, UIViewController. I would declare it like this: @interface NewViewController : MySubView { // code ... } @end In the future the client wants a change,...

getters and setters for custom classes

If you synthesize a custom class, do getters and setters get created for it? This is the custom class I created. // MyClass.h #import <Foundation/Foundation.h> @interface MyClass : NSObject <NSCoding> { NSString *string1; NSString *string2; } @property (nonatomic, retain) NSString *string1; @property (nonatomic, retain) NSS...

Why is my table view not displaying my data?

I have a document based application which has two classes, myDocument and Person. The interface consists of a table view for displaying the data and two buttons for adding and removing a peson from the table. The myDocument class is the data source and the delegate. I have the necessary delegate methods implemented but when I click the b...

Reload UITableView when navigating back?

I have a top level UIViewController that contains a UITableView. The top level UIViewController instantiates a NavigationController, and pushes another UIViewController onto the NavigationController. I.E. we push into a new, second view. This second view has the usual "Back" button in the upper left hand corner to allow you to navigat...

Why does my app crash

I made a class. This is the h file. // MyClass.h #import <Foundation/Foundation.h> @interface MyClass : NSObject <NSCoding> { NSString *string1; NSString *string2; } @property (nonatomic, retain) NSString *string1; @property (nonatomic, retain) NSString *string2; @end This is the m file // MyClass.m #import "MyClass.h" ...