I wrote a code in objective c for sharing on twitter, I pass in to the api the username & password and it runs successfully.
I have registered a twitter api key for my application but I don't know how I can pass it in the twitter api.
Could you plz help me?
Sorry for my english.
...
hello everyone,
I've got an issue which I need to solve
I am recording audio (caf) on the iPhone, then I need to play this after recording.
I am doing this all right on the Simulator but the problem is that on the device, the audio played's volume is really low as the only output is the iPhone's mic and not the iPhone Speaker
In the ...
Hi.
I have a plan to build a web-site which running CGI made with Cocoa.
My final goal is develop on Mac OS X, and run on FreeBSD.
Is this possible?
As I know, there is a free implementation of some NextStep classes, the GNUStep.
The web-site is almost built with only strings. I read GNUStep documents, classes are enough. DB connection ...
Hi,
I have a problem with parsing XML.
I have created a program which write a file xml in the project directory.
The file XML are correct. (i checked).
When i try to read this XML the program crash and return 1 status.
I have controlled my 2 path and they are equals.
Can you help me please?
Thanks so much.
#import "PositionIdentifierVi...
I'm working on a library which implements the actor model on top of Grand Central Dispatch (specifically the C level API libdispatch). Basically a brief overview of my system is as such:
Communication happens between actors using messages
Multicast communication only (one actor to many actors)
Senders and receivers are decoupled from o...
Has anybody an idea in which case this can happen?
GDB output:
0 .. 8: kill, abort, objc_exception_throw etc.
9: 0x00007fff87ea21f4 in +[NSException raise:format:] ()
10: 0x00007fff8694e9e2 in -[NSBezierPath currentPoint] ()
11: 0x00007fff869e3b3b in __NSAppendBezierPathWithGlyphs ()
12: 0x00007fff869e5baf in -[NSBezierPath appendBez...
So I have a TabBarController with 2 views. One of the views is a TableView in navigationController. When user selects a row I push a detail view there.
I want this detail view to have its own TabBarController different from the former one.
So basically the question is if I can push a view on top different view with different TabBarContr...
Hey folks,
I'm currently teaching myself objective C. I've gone through the tutorials, but I find I learn best when slogging through a project of my own, so I've embarked on making a backgammon app.
Now that I'm partway in, I'm realizing there's some overall architecture things I just don't understand.
I've established a "player" clas...
I see NSInteger is used quite often and the typedef for it on the iPhone is a long, so technically I could use it when I am expect int(64) values. But should I be more explicit and use something like int64_t or long directly? What would be the downside of just using long?
...
Hi all!
I Use this code:
NSString* strName = [NSString stringWithFormat:@"img_00%d.jpg", pp];
and works fine, but if pp took the value of 10 for example I wish have img_010.jpg as result, and not img_0010.jpg...
how can I format the string??
thanks
...
Hey, I have a program that needs to tell if an online image exists, but the only way that I've gotten this to work is by loading the image in a NSData pointer and checking if the pointer exists.
- (BOOL)exists {
NSString *filePath = @"http://couleeapps.hostei.com/BottomBox.png";
NSURL *url = [NSURL URLWithString:filePath];
...
Hi all! I need to play a video into a cocos2d project.. and my question is: how can I put MPMoviePlayerController into my view like this:?
UIView *theView = [[CCDirector sharedDirector] openGLView];
thanks very much!!
...
Hi,
I want to provide a picker to the user to select a country.
I've had a look in the NSLocale docs and I can get a list of all of the country codes supported on the device, which feels like a start:
Code:
NSArray *codes = [[NSArray alloc] initWithArray:[NSLocale ISOCountryCodes]];
But I can't work out if there is a programatic way to ...
Hi all,
I am getting an infuriating EXC_BAD_ACCESS error in an objective c app I am working on. Any help you could offer would be much appreciated. I have tried the normal debug methods for this error (turning on NSZombieEnabled, checking retain/release/autorelease to make sure I'm not trying to access a deallocated object, etc.) and ...
Hi,
I want to know a simple thing, which i couldn't get it is that i want to store 10 values in an integer array dynamically and then i have to check that stored values and compared with the current values whether it is same or not in some other condition. Initially i tried same like C array, int temp[10], but seems to be that is not po...
I have the following un my applicationDidFinishLaunching method
UIImage *image2 = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"image2.jpg" ofType:nil]];
view2 = [[UIImageView alloc] initWithImage:image2];
view2.hidden = YES;
[containerView addSubview:view2];
I'm simply adding an image to a view. But becaus...
I'm building this iPhone application to connect to a secured TFS server (one that requires authentication before letting you access its web services). When I access this server in a browser, the first thing it will do is ask me for credentials (username/password) and then connect me to the TFS server if those credentials are correct.
I ...
Hello all,
I am looking for good example code for using delegate and events in objective c?
i am familiar with delegate and events in C#.
so if someone can help me with few lines of code it will be very helpful.
...
I know I must be over-complicating this because it NSTimeInterval is just a double, but I just can't seem to get this done properly since I have had very little exposure to objective c. the scenario is as follows:
The data im pulling into the app contains two values, startTime and endTime, which are the epoch times in milliseconds. Th...
Possible Duplicate:
NSNumber retain count issue
Hello,
I have the following code:
NSNumber *number = [NSNumber numberWithInt:5];
int i = [number retainCount];
[number release];
i = [number retainCount];
[number release];
i = [number retainCount];
the problem is that in line 2 , the value of parameter i i...