I'm working on a video sharing application that can load plugins that share to different places (Youtube, Twitvid, Facebook, etc.)
I have a plugin that reads in a custom file type. We'll call it a .foo file with some information about the video being shared. So I put this foo UTI type in the imported UTI type section of the plugin bundle...
I initiated an NSDate with [NSDate date]; and I want to check whether or not it's been 5 hours since that NSDate variable. How would I go about doing that? What I have in my code is
requestTime = [[NSDate alloc] init];
requestTime = [NSDate date];
In a later method I want to check whether or not it's been 12 hours since requestTime. P...
What is a good IRC channel for objective - c and cocoa programming?
...
I'm trying to create an array of NSStrings of the contents of a folder that I've dragged into my project... but when I count the items in the array afterwards, it's always comes back with 0;
So, my folder in my project looks like this
-Cards
-Colors
Blue.png
Green.png
Orange.png
Yellow.png
Purple.png
Bla...
Hey stack,
I've had a working version of our codebase working on 3.1.3 and 3.2, and recently we've noticed a substantial drop in the traffic to the URL this request is hitting. After investigation, I noticed that there is no longer any traffic to this URL, subsequently breaking the app completely.
This exact code will properly execu...
Hi,
Can somebody explain to me how I can present an email to the iPhone-App-User that has input fields that the User should fill in before sending ??
Simple Example: The user should input their name....
Blockquote
NSString *emailBody = @"\
<html><head>\
</head><body>\
<form>First name:<input type="text" name="firstname"...
Hi all,
I am working on an app that uses a navigation controller to control the views. In one part of my app, I want to have a UIView with a UISegmentedControl just underneath the navigation that will "filter" the UITableView. Essentially:
========================================
| < Back) Title Goes Here | <- navigation...
Hello,
I am trying to figure out how to capture the audio from a given software running on a mac, just like audio hijack does.
I'm aware that this is not the first question on the subject, but I'd like to better understand the possibilities on how to do it.
Crete a user space driver is the only solution to achieve it?
...
Can I put all connection related functions into it's own (singleton?) class or possibly the app delegate?
I've got a lot of code repetition right now...
eg. this method is in at least 5 files:
- (void)connection:(NSURLConnection*)connection didFailWithError:(NSError*)error;
Would I just import a class with these methods in it? Do I ...
I have an NSDictionary. It holds several objects, including an array of child NSDictionaries, each of which have an object keyed as @"Parent" that point back to the parent NSDictionary.
This circular reference breaks the ability to inspect the object with a classic call like:
NSLog(@"%@", [myDictionary description]);
Would anyone be ...
Hey, I am trying to convert NSString to a C string using cStringUsingEncoding but I have a memory leak. My understanding is that cStringUsingEncoding returns a pointer to a character array that is only guaranteed to exist for the duration of the NSString object. As such you should copy its contents to another string. Here's where my prob...
What is the best practice when nesting method calls or using one-shot variables?
Should you never use one-shot variables?
example:
[persistentStoreCoordinator addPersistentStoreWithType:NSXMLStoreType
configuration:nil
URL:[NSURL fileURLWithP...
For some reason, using loadNibNamed: is leaving me with a memory leak.
Let's say I have the interfaces:
@interface Step : UIViewController
{
IBOutlet UIView *keyPadPopupView;
}
@property (nonatomic, assign) IBOutlet UIView *keyPadPopupView;
In Step:
@synthesize keyPadPopupView;
- (id)initWithNibName:(NSString *)nibNameOrNil bundl...
I am have created a timer where I convert the remaining time to a string with a format of:"mm:ss" and when the string value of the time is 00:00 I would like to invalidate the timer. For some reason it doesn't work, even when I log the remaining time I see the the value has the correct format so I don't know why my "if" branch in "countT...
Is there any sample that I can use to learn how to transfer text between iPhone and a computer (mac/pc) using bonjour?
...
Hi,
I'm currently using cocoahttpserver to do some file sharing thing in my iPhone app. Does anyone know how to use public IP address to connect to the phone, that is to use the Internet, rather than internal connection via WiFi.
Any help would be appreciated! Thanks in advance.
...
Hi, everyone,
I want to ask a question about the iPhone application.
In my program, I create the UITabBarController with 4 tabs. The 4 tabs display different information and have some connection. When I do something in the tab 4, it will update some data which display in tab 1. However, the page is the same if I add the element in th...
hey guys,
I'm looking for a tutorial on how to listen to the microphone input while it is recording. I've been searching for a while but nothing really relevant comes up. Is this supported by the SDK or is it a bit of a hack to set up?
I've found this but I'd like to find something a little more educational.
Any tips?
Thanks!
...
moveMe[639] <Error>: CGContextSaveGState: invalid context
moveMe[639] <Error>: CGContextSetBlendMode: invalid context
moveMe[639] <Error>: CGContextSetAlpha: invalid context
moveMe[639] <Error>: CGContextTranslateCTM: invalid context
moveMe[639] <Error>: CGContextScaleCTM: invalid context
moveMe[639] <Error>: CGContextDrawImage: invalid ...
I have a core data application and I would like to get results from the db, based on certain parameters. For example if I want to grab only the events that occured in the last week, and the events that occured in the last month. Is it better to do a fetch for the whole entity and then work with that result array, to create arrays out of...