core

Core Animation: Issue with touches after animation

Hi I am facing a problem in touch handling after the layer has animated. I have a CALayer called a “wheel” and it contains sublayers on which I have to detect touches and move the wheel. here is my code for wheel animation -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { // Get the touch point UITouch *touch = [touc...

NSPredicate - returning ever unique instance in a column.

I was wondering if there was a predicate to return every unique instance in a column. ...

Best Persistence model for iPhone development

I'm finishing my second book on iPhone development (Beginning Iphone 3 Development - Mark/LaMarche) and, while this book covers the 4 main persistence mechanisms, I'm still not sure which one to use for my application. My data model is not very intricate, but I do need some relationship definition and functionality. So what are the sea...

iphone os audio export question

Im kind of newb to audio processing but have ExtAudioFile converting pcm to kAudioFormatMPEG4AAC and if i save the file as .caf it plays fine. but not as .m4a (on desktop) looking at the audio file it seems the header doesnt match another .m4a header and seems very short and has 'caaf' in it. my guess is it might be mpeg4aac data but th...

SpeakHere recording input source

Hi Could anyone tell me where to change the recording input source in the SpeakHere sample code of Apple? I can't figure it out... Thanks SpeakHere sample code : here ...

Calculate distance from Location - iPhone

Hello, I'm trying to calculate the distance between two places user Core Location. I've found a few posts that state to use -(CLLocationDistance)distanceFromLocation:(const CLLocation *)location Found some other test code in the thread below: http://stackoverflow.com/questions/1171138/cllocationdistance-nan I'm not sure how to put...

How do you query OWL Annotations

I am searching for the method/tool/syntax to query annotations in an RDF/OWL ontology. The query engines I have found search classes, properties, indivituals but I have not found one that will search based on the value for example DC:Description Can someone enlighten me, thank you ...

Core Plot and Split Views...Impossible??

This is a general question regarding pulling up a CP plot in a split view controller. I have menu items pointing to individual view controllers pre-loaded with everything core plot related. My question is can anyone fill me in on a good way to present the graphs on the right pane while still showing the left pane? The way that I h...

MKAnnotation: Reading a tag for MKAnnotation.

When I add an annotation, I add a ".tag" to it. However I can never read the tag in the following method. `- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>) annotation` MKAnnotationView *annView = [[MKAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@"MyPin"]; annView....

UITableView reordering core data results

my UITableView is reordering the results after you navigate away and them come back to the view. it only does it one time though - if you navigate away and then come back a second time the new order doesn't change. does anyone know what could be causing this? thanks for any help. ...

Convert Integer List to int array

Is there a way, to convert a List of Integers to Array of ints (not integer). Something like List to int []? Without looping through the list and manually converting the intger to int. ...

questions on database updation

I have a web application that is implemented using java,jsp,servlets . whenever i have updates in the database table, the arraylist in my DAO should be updated. is there any better solutions. Solutions create a thread in bean and query the database, if updates found then repopulate the arraylist. from client send an ajax request usin...

Core Telephony -- Call Event Handler

Hi, I wish to detect the call state after my app resumes the active state from the background. Im using the following piece of code for this: CTCallCenter *callCenter = [[CTCallCenter alloc] init]; callCenter.callEventHandler=^(CTCall* call) { if (call.callState == CTCallStateDisconnected) { NSLog(@"Call has been disconnected...

option drag entity of data model to interfacte builder don't work

Hi, These are the steps i make: I create a simple data model of one table with two propertys. Then I compile the datamodel, and then i build the project. Then i make a new xib file with a view then i drag my entity with the option key to the view and i see a + symbol. Then i let my mouse go and nothing happens.... What am i doing wron...

Fluctuation of Yaw in Core Motion

From the code below, I am having a problem with Core Motion that I could not get a reliable yaw data. To reproduce the problem on iPhone 4, you can put the phone on a table, run the code and rotate the phone about the vertical axis between 2 points. On my phone, the yaw value of the points tends to move away from the initial values. For ...

"An error has occurred" message when Location Services is turned off.

In the iOS simulator, I am prompted to turn on my location when the app attempts to pinpoint my location. However, on an iphone running 4.1, I get a generic "An error has occurred" without any type of prompt. I checked my project's NSLogs/Alerts and none of them have a generic "An error has occurred." Is anyone aware of why this happens?...

CoreData: deleteObject faults on relationships when nil.

We have a project that has two one to many relationships. We encounter a core data fault when we try to delete the parent object. This ONLY happens if the child relationships are empty. So for example: A project has many to-dos and messages. If we create a project and add a message and a to-do to it, and subsequently call deleteObject o...

How to retrive Core Data SQL store from Developer's App on the Developer's iPhone

I need a copy of the store that is saved as Core Data sqlite file inside a test app installed on my device. I know how to get files out of the the simulator at path: ~/Library/Application Support/iPhone Simulator/[Version]/Applications/[AppID]/Documents ...but i need get the .sqlite file from the app on the device itself. ...

How to forbid CALayers responding to a hit test?

I'm doing some layer drawing on the iPad and have to provide user interaction. My layer hierarchy is quite complex and deep, I'm drawing some kind of a tree with several interaction possibilities. At the moment I need to draw arrows within this tree which should be drawn on top of all other layers and there the problem comes. These Arro...

Printing Core Data

I'm working on a program and I have created a fetch request to grab the data that I need to print. I'm able to log information like this: 2010-10-03 16:57:10.362 lzshow7.2[2537:10b] <NSManagedObject: 0x2ca120> (entity: Song; id: 0x2afcb0 <x-coredata://CF5A85CE-BE0F-4ADC-979A-7F4214A8FB19/Song/p9> ; data: { cueName = Freedom; cu...