Can some one help me out from the time calculation in form of hr:min:sec. But I does need the system time. That's for I made this code
I try to make time calculation in the form of hr:min:sec
but it doesn't work in right way(it work till one hours)&
((1)after the 60 second output is 0:1:60 (2)after the 61 second output is 0:1:71 (3)afte...
I have some python code for Google App Engine that responds with the string {"sample_list": [{"message": "Hello, world.", "name": "Human"}]} I am using this JSON-framework developed by sbrautaset to convert the string to an object that I can use (NSDictionary in this case). I am following the tutorial here to use the framework.
My prob...
I'm trying to implament a callback mechanism where I pass in a block to the init of a class, and after some work that class calls me back. The block gets called and most everything works, except when I call anything on "self" within the block. I get Program received signal: “EXC_BAD_ACCESS”.
unless I comment out any reference to self...
How do I create a Cocoa app that runs in the background (not in the dock, and not in the menu bar either; just in the background).
Does the app need admin privileges? I hope not. Actually it shouldn't, because it's enough that the app runs in the background for that user only, i.e. not for all users.
And I guess I can make it "launch w...
can I setup a function to be called once my animation is complete? I want to fade a view and then remove it from the superview.
...
I'm trying to add some playlist support to an iPhone app that I'm working on, and need to access what playlist is currently playing music from. Not an exact song, but the entire playlist. Is there any way of doing this? I've been all through the API and haven't found anything.
Thanks for any help!
...
Hi all.
I was able, in iPhone os 3, to get EXIF dictionary with PLCameraController and with
-(void)cameraController:(id)sender
tookPicture:(UIImage*)picture
withPreview:(UIImage*)preview
jpegData:(NSData*)rawData
imageProperties:(id)imageProperties
{
but now in os 4 my app doesn't call this function, and I can not get i...
Hi All,
I have a doubt in accessory view in UITableView. The doubt is
Is it possible to add more than one button in UItableviewcell using accessryView if so plz guide me.
thanks in advance
...
Hi,
I am building an iphone app, now this app has a tabviewcontroller and one of the tabs has a navigation view controller in it. Inside the navigation view controller I have 2 UIview controllers and in one I am loading a UITableView. The data for the cells is loaded up from a database and it takes some time, to avoid this I am doing a ...
This is an object I made to do some flash cards. The first method (I left out the main part) generates a NSMutabaleArray of Card objects with the passed in operator and works fine. The second method, "drawFromDeck" gets called on a Deck object from my view controller and also works fine, but the Static Analyzer says I may be leaking an...
I dont want to select again n again the same sound to play as background in my app. How can i copy sound file into my app assigned folders/files?
I can play file in the method mediaPicker:didPickMediaItems:
How to save that sound file?
...
When presenting my UIImagePickerController with editing enabled, what does this bounding box mean during the edit phase?
...
I'm using this function to extract a substring, it works but there are two leaks:
-(NSString*)EstraiP:(NSString*)str ini:(NSString*)ini fin:(NSString*)fin occ:(int)occ{
NSRange rstr1;
for(int i=0; i < occ; i++){
rstr1=[str rangeOfString:fin];
str=[str substringFromIndex:rstr1.location+rstr1.length];
}...
What is the difference between these two NSArray methods?
...
How can I create a thumbnail image from info provided by UIImagePickerController didFinishPickingMediaWithInfo?
...
I have an app where I've a UINavigationController in a popover that displays some information. The root item contains a button showing a related Contact. I'd like to press the contact button and display the ABPeoplePickerNavigationController. I've got this code to do it:
ABPeoplePickerNavigationController *contactController = [[ABPeople...
Hi,
I'm using Rococoa in a Java project and I am a newbie with JNA.
I need to cast a NSURL object to its CFURLRef equivalent and pass it to a low-level C function in CoreFoundation (to create a CFBundle).
I can't figure out how to cast a Rococoa NSObject or ID to a JNA Structure reference. Any hints? Thanks.
François
...
Why would I be getting a different instance of HistoryViewController than the one I instantiated and pushed onto the navigationController?
The different instance created doesn't have any of the properties I've set.
ProfileHomeViewController.m
HistoryViewController *historyViewController = nil;
historyViewController = [[HistoryViewCon...
I have the following code which fetches a string from an array of strings and splits the string into 2 parts.
NSString *temp = [tableViewData objectAtIndex:indexPath.row];
NSArray *tempArray = [temp componentsSeparatedByString: @"_"];
cell.textLabel.text = [tempArray objectAtIndex:1];
and the String which is added is as follows
newTi...
Hi,
I'm on Mac OS X (Objective-C) and I'm looking for a way to determine if a file has a video stream. More specifically, a video stream that can be decoded by FFmpeg. I probably can put something together with Objective-C to see if a file has a QuickTime-compatible video stream but that's not enough. I could try MediaInfo but I don't k...