objective-c

iPhone streaming debugging information

Hi there, I'm looking for a way (doesn't need to be app-store save!!) to get ahold of video-streaming-relevant debugging information. What I'm trying to do, is to write an application that opens a video stream and displays information like: framerate bitrate audio / video etc etc. codec information basically i want to display as mu...

TableView with checkmarks

Hi, I want to make a TableView with Checkmarks similar to selecting a day at the alarmssettings. I have found a code on the internet but it isn't working. and I have a code from a book but I it doesn't work either. please help me ...

Mobile Substrate: editing time/carrier strings in the status bar

One of the features I plan to have in the extension I'm writing is that the current time populates the carrier field instead of the actual carrier, and the time in the middle is hidden. In other words, I want the phone to set a fake carrier to the current time whenever the time changes. I took a look at Ryan Petrich's code for his extens...

how to get directions from google map?

hi all, I want to develop an application which gives directions in text format from source to destination using google map.Please give me some example which gives direction from source to destination in text format(ie in english language)eg:turn right from xxx. thanx in advance. ...

getting network response when application is in background

I am uploading an image to the web and want it to keep upload even if the app goes into the background. So by using the beginBackgroundTaskWithExpirationHandler, I start uploading the image and then send my app to the background by pressing the home button. The image gets uploaded on the website and I can see it but none of the delegate ...

How to send sms from Iphone simulator 4.0

Hi I have gone through http://blog.mugunthkumar.com/coding/iphone-tutorial-how-to-send-in-app-sms/ for sending sms from Iphone. this is giving me alertView with message textMessage is not enabled on this device. plz suggest me where is the problem. Thanks for any help/suggetion. ...

Weird cocoa bug?

Hey folks, beneath is a piece of code i used for a school assignment. Whenever I enter a word, with an O in it (which is a capital o), it fails! Whenever there is one or more capital O's in this program, it returns false and logs : sentence not a palindrome. A palindrome, for the people that dont know what a palindrome is, is a word tha...

What is the difference between c++, objective-c and objective-c++?

Hi Guys, I want to know the difference between c++ and objective-c and objective-c++. Can any one give me the difference and Can we use the c++ for iPhone development Thank you, Madan Mohan ...

how to print characterSet in objective c?

i'm using GNUstep shell for programming objective-c. I'm able to convert string to a character set. But unable to print the converted character set in the console. Please tell me a way to print it. Thanks in advance. ...

Convert NSString to NSDate results in NULL

I want to convert the following date: 2010-02-01T13:58:58.513Z Which is stored in a NSStringto and NSDate. The following however just shows "NULL" in the debugger NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat:@"YYYY-MM-DDTHH:MM:SS.tttZ"]; NSLog(@"Output: %@", [formatter dateFromString:@"2010-0...

How to set thumbnail for the video we are loading in the UIWebview in iphone sdk?

Possible Duplicate: How to set the thumbnail image got from MpMoviePlayerController as a thumbnail when loading the video url string into webview? Hi guy's I had a thumbnail Image for the video I am playing in the Webview and my code is: - (void)tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)index...

Populate NSForm with NSComboBoxes

So I have a task of reading from an xml file which contains a description of what form fields and comboboxes should exist in a dialog. I started by using NSForm and addentry to add the form fields, but then found out NSMatrix may be required to add combobox cells dynamically. So my questions are: 1) Since NSForm inherits from NSMatrix ...

How to set thumbnail for the video we are loading in the UIWebview in iphone sdk?

Hi guy's I had a thumbnail Image for the video I am playing in the Webview and my code is: -(void)tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { printf("\n Inside didSelect method....!!"); masterAisleItemListIndexArray = (NSMutableArray*)[ [masterAisleItemListDictionary allKeys] ...

How to refresh or reload a App in Multitasking

Hi, When my Iphone-App was already running and I try to go back to it then it cannot refresh or reload the news or tables automatically. How could i set an automatic refresh on the quickstart of the App? Thx ...

Cocoa-touch - drawing with core graphics to a touch point

so i want to do something which seems pretty simple but is proving other wise, i want to just draw a square at the point that touch i registered. i cant seem to get it to work though. in touchesBegan i am calling a custom method called drawSquare that is sent a CGRect. i know i must be doing something simple wrong but i don't know enough...

What's the difference between doing alloc and class_createInstance

Hi, Wondering, what is the difference between creating a class with: Class clazz = [NSString class]; [clazz alloc]; and class_createInstance(clazz,0); ...

Categories/Interfaces From Static Libs Not Autocompleting?

Thanks to this post and the now built-in static library template, I am able to put some of the pieces of my project elsewhere. Everything compiles with no warnings and runs fine. However, I used to get autocomplete for the categories in my import statement. This is no longer happening. How can I get autocomplete for categories in a stati...

NSTimer for UITableviewcell similar to World Clock app

I would like to build a few simple countdown timers in a UITableview. I noticed the World Clock app has animated clocks in each of it's rows. What is the best method to firing an NSTimer to update each table row? Can a single timer be run that updates all cells or should I have a custom view subclass with built in timer that is added to ...

Problem with UIButton on subview of a cell

Okay, a short breif of my app before i explain the problem. My app has two views for it's custom TableViewCell, one frontview, and one backview(which is revealed once you swipe your finger across the cell, much like the twitter-app). Anywho, i wanted to have some buttons on the backview. I did this in the cellForRowAtIndexPath-method T...

How can I use custom sorting on an NSTableView bound to an NSArrayController?

I have an NSTableView connected to an NSArrayController by setting the column values in interface builder to the appropriate keys in the NSArrayController. I'd like to use a custom sorting order, specifically, compare:options: with NSNumericSearch. Where can I either change my code to do this, or tell interface builder to use a differe...