I have an iphone app that uses table view as the interface. Each time that the user taps on one of the table cells, I want to show another window to the user. However the user interface of the window that I push into the navigation controller are extremely similar. Therefore I decided to make a "generic nib file" to be used across all th...
Is there a standard way to convert the localizable.strings file to csv format, or something else than can be imported by a spreadsheet program such as OpenOffice? Thanks.
...
Hello,
I'm trying to create an XML string and pass it to another method where I use the HTTP POST to send it to a PHP script. See the log file below, I can create the XML string and display it in the log file, but I cannot pass it to the postXMLFeed method.
What am I doing wrong ?
-(IBAction)syncUp {
[self createXMLFeed];
// [self...
Hey guys,
I'm experiencing an odd problem with AVAudioPlayer class.
Everytime I try to access one of it's properties they are null.
// Get the file path to the song to play.
NSString *filePath = [[[NSBundle mainBundle] pathForResource:pSound.fileName
ofType:pSound.fileType] retain];
// Convert the file path to a URL....
I'm trying to retrieve data from a POST method, code as follows:
-(void)postXMLFeed:(NSString *)XMLStrPost
{
//NSLog (@"XML Feed3: ", XMLStrPost);
NSURL *url = [NSURL URLWithString:@"http://xxx.xxx.x.xxx/stephen/sync_upload.php"];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
[request setVa...
I'd like to convert NSImage/UIImage to AVFrame(ffmpeg).
I found a example code.
http://lists.mplayerhq.hu/pipermail/libav-user/2010-April/004550.html
but this code doesn't work.
I tried another approach.
AVFrame *frame = avcodec_alloc_frame();
int numBytes = avpicture_get_size(PIX_FMT_YUV420P, outputWidth, outputHeight);
uint8_...
Can any one tell me what Intruments are in Xcode? Are there any tutorials or videos for learning about Instruments, such as the Lynda iPhone SDK Essential Training tutorial?
...
I would like to provide spreadsheet capability in my Cocoa application. From what I've heard, OpenOffice does allow some level of embedding, but I'll be darned if I can find that information in their official SDK documentation. Can anyone here point me in the right direction?
...
I have an ipad app that when you are in landscape view, the view will move up when the keyboard is brought in. When you press done on the keyboard, textFieldShouldReturn and textFieldShouldEndEditing are called in which case, I move the view down in shouldEndEditing.
If the user presses the dismiss keyboard button, the keyboard does poo...
Hi, I am not sure if the leak is in my implementation or is it from apple's side....
Instruments indicate me that I have a leak in this line :
if (![[self fetchedResultsController]
performFetch:&error])
I am adding annotations by reading the fetchController to the Map.... like this :
-(void)fillMapWithAnnotations{
NSError...
I'm trying to localize an iPhone project for the first time, and programming for the iPhone 4 Base SDK for the first time, and it's not going well. My program should be easy to localize because I don't have to change any nibs. The Apple Developer resources on localization indicate that I need a .lproj directory in my settings bundle fo...
I've just been pulling my hair out trying to make Instruments cough up my deliberately constructed memory leaks. My test example looks like this:
class Leaker
{
public:
char *_array;
Leaker()
{
_array=new char[1000];
}
~Leaker()
{
}
};
void *leaker()
{
void *p=malloc(1000);
int *pa=new int[...
Hi!
I am migrating to OS X and now trying to use Xcode.
There is a project that was compiling and running normally on a g++ linux distro, now on mac it is returning a thousand of errors. I guess that the linux std files, somehow included others files needed and now they are not this connected in the std of Mac OS X.
How can I know what ...
Hi folks,
I want to create a sidebar in one of my mac applications. Basically it will look much like the Things sidebar.
Here is the picture that I basically want to recreate - http://i48.tinypic.com/c25ix.png
I can't figure out how to show the "sections" (collect, focus and active projects) and how to have certain items always show u...
Hi,
I upgraded my Xcode from 3.1.2 to Xcode Version 3.2.3 and upgraded my device to 4.0 OS. I have set my Base SDK to iPhone Device OS 4.0 and the iPhone OS deployment Target to iPhone OS 3.1.2.
When I run my application (which was created in 3.1.2) on device under iOS4.0, and I see problems such as dates not displayed and the "back" ...
hello all ,
I am developing Iphone app that reads data from url and after parsing i should save that data for persistance.(Because of getting app in offline also...). I want to use core data for this.
Such that first time only we will read the data from url and save into objct model, so from second time onwards we can fetch the data fro...
I have an application that worked just fine on iOS 3.0 - 3.1.3. When testing an iOS 4 SDK ad-hoc build however the app behaves strangely. After installation (with either Xcode, iTunes or iPhone Configuration Utility) the app does one of two things:
App launches and works, but fails on subsequent launches and just shows a black screen.
...
I have a view with two textviews in it. By touching on the first textview i resize it to "fullscreen" an it works fine, but touching ob the second textview the part where the first textview is is behind the first textview.
Is there any possibility to set to change overlap properties ob the textviews?
...
I just downloaded the code from http://cocoadevblog.com/iphone-tutorial-creating-a-rss-feed-reader to see how to implement rss feeder And it shows a warning " class 'Parser' does not implement the 'NSXMLParserDelegate' protocol " at [rssParser setDelegate:self]; in parer.m. App loads in simulator but does not work. I checked in refernces...
Hi
In Xcode, suppose that there is a framework named Foo. Inside the Foo.framework/Headers folder there are files File1.h and File2.h. The header file File1.h includes File2.h via the following directive:
#include <File2.h>
The Foo framework is a re-package of a C++ library not specifically targeted for the Mac.
Now suppose I have...