objective-c

How to make video wall with iPhone SDK.

Hi. I need to generate video file with iphone SDK that looks like a wall of few smaller videos. Did somebody could help me with advice how to implement this? I am currently thinking of images with frames, that placed in UIView in needed order and then assemble them in one final video, but I can't find how to do it. Here's how it should ...

Objective C collections, keeping uniques

In a collection how can I remove repetitions or preserve uniqueness? ...

problem with intergating facebook & twitter for iPhone in my app

hello I am being using facebook & twitter in my application where user post comment on facebook & twitter . I have facing problem while using facebook i have used session so once user login he is not getting option for logout. he will continued posting comment . And for twitter : How will i create application in twitter for my applic...

How to add a checkbox in front of folder tree in finder with Mac?

I want to change a outline view , and add checkbox cell in front of node , and the node have a icon and how to add checkbox in head of the icon? ...

Dismissing Alert View of controller or app whose object refference is not available..!

How to dismiss the alert view (and execute its cancellation handler) when my application moves back to the foreground or my refference object is not available? If any one knows please reply. Thanks in advance..! ...

Using BWOrderedManagedObject with NSFetchedResultsController

I would like to use BWOrderedManagedObject to store an array of ordered objects in Core Data, using NSFetchedResultsController for displaying the data. However, all of BWOrderedManagedObject's methods seem to simply return an array of ordered objects; NSFetchedResultsController requires an NSFetchRequest, and the only way to sort an NSF...

How to change the preferred language of an iPhone app in iOS 4

Changing the language of an iPhone app has been discussed many times, but I'm stuck with this one: The provided solutions require the app to be restarted to make the changes take effect. But how do you achieve this on an iPhone 4? Pressing "home" sends the app to the background and clicking the app icon just brings it back. The user has ...

How to access files from free and paid versions of the same app?

I have an app (a game) which stores data (high scores, etc.) in the Documents directory (gotten by specifying NSDocumentDirectory to NSSearchPathForDirectoriesInDomains). Now I want to release a free version of my app. I want both apps to be able to access the same files (for example: a user of the free app gets some high scores, then ...

How to call a method of another Class?

EDIT2: I try to summarize my problem and the solutions: I've got a TableViewController named DetailedViewController. My intention was to activate TouchesBegan to recognize actions like sliding etc, and normally, the method touchesbegan is replaced with the DidSelectRow method. In many posts on stackoverflow, subclassing the UITableView ...

Using named value from enum in Objective C

I have an enum defined as follows: typedef enum modifiers { modifierNone=-1, modifierCmd, modifierShift, modifierOption } Modifier; What i would like to do is pass a string value from one method to another for exampl...

saving and loading data when app is running.

I would like to have at least 2 arrays which I can create when the user first saves something, and from then on read from the array when the user wants to view that data, and update the data when the user is done updating it. Does a file need to be created before hand or how is this done on the device during runtime? Just storing 2 ar...

WebKit WebScripting Protocall callbacks with multiple parameters?

Hey I've registered my object and function selector to get callbacks from javascript when the function is fired. This all works fine for functions with a single parameter, how can I receive callbacks for functions with multiple parameters? So far keeping the syntax the same gets my function to fire, however the object passed in is alwa...

Can I import .obj files for use on the iPad

Is it possible to create 3D models in other applications (e.g. Vue Esprit) and then export these models as .obj files for use in iPad applications? ...

TableViewController - Retrieve data from Database

Hi Guys, I've a problem with my TableController. When I call cellForRowAtIndexPath() I'm able to retrieve info from Database class with: myGroupsAppDelegate *appDelegate = (myGroupsAppDelegate *)[[UIApplication sharedApplication] delegate]; myGroupsDB *mgdb = [ appDelegate.groups_db objectAtIndex:indexPath.row ]; cell.textLabel.t...

iPhone Facebook Connect SDK: login and request extended permission in a single call

OK, so I need my app to be able to post something on the users's wall but I'm not very happy with the solution of showing the login pop-up and then the extended permission request popup. Can it be done with only one popup? Or even with 2 pop-ups but triggered by a single API call? Thanks! ...

Set Focus to a Cocoa Window in Carbon App

Hello, I'm trying to create a Cocoa Window within an otherwise Carbon Application (it's an OpenGL API that uses AGL. Can't change it so don't comment on that). Here's a code snippit: WindowRef winref = static_cast<eq::AGLWindow*>(getOSWindow())->getCarbonWindow(); vc = [[SFAttachedViewController alloc] initWithConfig:config]; //load...

Opening .docx file in sdk 4.0

HI i am trying to open .docx files in iPad with OS 4.0 but it is not working well it is working in OS 3.2. anybody know how to open it now in OS 4.0? Thanx in advance ...

Displaying a detail view from within a tab bar controller

My app has a UITabBarController as its main view. The tab bar has three tab items, one of which contains a UIViewController with a MKMapView on it. The MKMapView has annotations which have disclosure buttons on them. UITabBarController UIViewController (one of the tabs) MKMapView MKAnnotation DisclosureButton Wh...

UIWebView: Absolute path for images in app documents folder

I have a UIWebView that loads up some html. In it is an img tag, I am saving an image in the app documents folder and I want to display that image within the html, I do so like this NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory , NSUserDomainMask, YES); NSString *documentsDir = [paths objectAtIndex:0];...

does animateWithDuration:animations: block main thread?

I have connected the two methods below to separate buttons in my UI but have noticed that after pressing the "VERSION 1" button that I could not press the button again until the animation duration within the method had ended. My understanding was that the animation uses its own thread so as not to block the main application. // VERSION ...