Google states the following in the AJAX Feed API docs:"Applications MUST always include a valid and accurate http referer header in their requests."
I am building a native iPhone application and would like to use the Google AJAX Feed API's REST interface from my app's native objective-c code. Is the API only for use on websites, or can ...
ok, nothing special here, no errors, and I do declare NSMutableData *receivedData;
but I'm returning <> when I expect a web page returned; what's going on?
- (void)viewDidLoad {
[super viewDidLoad];
NSURLRequest *theRequest=[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.apple.com"]
...
Hello,
First of all, I'd like to point out that I'm not asking for code. I'm just asking for the sort of things I'd need to do to get this to work, as right now I've absolutely no idea. Here's what I want to do:
Similar to viewing someone's photos in the Facebook app, I'd like to display an image (UIImageView) on the screen. When the u...
I've got an iphone app where I'm trying to use HTTPRiot to make some API calls to a web app. Problem is I can't see that none of the HTTPRiot delegate methods are being called. I've got a log in all the delegate methods, and I'm also looking at the webserver log. I see that the URL is being hit.
//API.h
#import <Foundation/Foundation...
Hello,
This problem has just come up when I cleaned all targets and soft resetted (held home & power for about 10 seconds) my iPod Touch (2nd gen). It looks like the view might be rotated portrait.
Here is a pic of the problem:
The view is linked to a XIB file, and I setup landscape in interface builder. I also use
<key>UIInterface...
I have a hard time grasping this memory leak in my code. Basically it's returning an object containing a object. here's the following code:
-(id) getOptions {
FileManager *file = [[FileManager alloc] initWithFileName:@"optionsFile.dat"];
Options *options = [[Options alloc] init];
NSMutableArray *fileArray = [[NSMutableArray ...
Hey,
I've already tried with NSDate but with no luck.
I want the difference between for example 14:10 and 18:30.
Hours and minutes.
I Hope you can help me shouldn't be that complicated :)
...
Hey, I'm looking for useful resources about Delegates. I understand that the delegate sits in the background and receives messages when certain things happen - e.g. a table cell is selected, or data from a connection over the web is retrieved.
What I'd like to know in particular is how to use delegates with multiple objects. As far as ...
I trying to do an animation on the iPhone and I hope someone can help me out here as I'm stumped.
I am using CAKeyframeAnimation with CAPath to animate views around.
I have these settings set:
animation.removedOnCompletion = YES;
animation.fillMode = kCAFillModeRemoved;
So that the animation is removed from the layer when the anima...
I am trying to port a Windows FileMaker plugin to OS X and am thinking that I should be doing this in Cocoa not Carbon, but I am struggling to get anything to compile as soon as I include Cocoa.h
...
Hi guys,
I want to add meta data to an iCal event (task) with OpenMeta. Therefor I need the path to the file that contains the event (task). Is there a possibility to get this programmatically if a have a certain CalCalenderItem?
Thank you very much!
Best,
Felix
...
I'm trying to do something really trivial: A macro that takes an string and prints that to NSLog.
Like this:
#define PRINTTHIS(text) \
NSLog(@"text");
However, when I try to pass a string to this guy I end up getting "text" printed to the console. Aren't all variables replaced on a string-level inside the macro? How to do that ri...
Example: When my method -fooBar gets called, I want it to log in the console which other method of which other class called it.
Right now, I only know how to log the method name of fooBar itself and it's class, with this:
_cmd
[self class]
Is this possible to figure out?
...
I have a ViewController which controls a view that needs a different layout in landscape mode than in portrait mode. I made two .xib files that are semantically identical but have different layouts. I know there is a hack to display a second ViewController modally when in landscape mode, but I'd really rather just re-initialize the vi...
I want an image to move according to the path drawn by programming codes.
I have asked a similar question (http://stackoverflow.com/questions/1571182/how-to-limit-a-uiimageview-to-move-in-a-specific-path) before, but I found that I asked in a wrong way. The image needs not to be a UIImageView. Also, the answer given above was later foun...
Hi everyone
I want to display a text on the screen using Cocos. I thinking off using draw. But don know the exact function. Glad if anyone could help
...
I have a string say for example @"012" and I have another string @"02". How can I extract the difference of the 2 strings in iPhone Objective-C. I just need to remove the existence of the characters in the 2nd string from the first string.The answer would be "1".
...
I want to develop a custom pdf viewer, in which I can add features like:
bookmarks
jump to specific page
take some notes
page flipping effect
Can you suggest some libraries in Cocoa touch to fullfill my requirements?
I followed the PDF viewing tutorial in which a webview was used but it only provides basic scrolling and zoom facilit...
I've got an app that initially loads in one view controller for a period of time before it's replaced by a UINavigationController (and its corresponding root view controller) in the Window's view. Once the app is being managed by the Navigation Controller I am releasing the previous View Controller and its View. It's difficult for me to...
I am creating an application,in my app i am changing images for countdown.I want to play a Tick sound when one second completes(i mean when image changes).I have a 25 second long sound with repeated tick sound and within time interval of 1 second. sometimes it works fine but sometimes it's not.Now how do i sync audio with my timer.any he...