Re: inApp Purchases

2011-06-03 Thread Development
I found the answer to this after I found a json validator on google. The json object I was getting back IS INVALID it is missing the leading "{" character. Add that to the returned object and it parses just fine. Here's the problem... Either it's a problem on my end in the receiving, or one on

Re: Good and updated book for iPhone development

2011-06-03 Thread Rikza Azriyan
Beginning iphone 4 prograaming by jeff lamarche i tought Rikza Azriyan Student of Sriwijaya University Palembang, Indonesia Sent from my iPhone 4 Provided by Telkomsel. On Jun 4, 2011, at 11:46 AM, David Rowland wrote: > I like "Programming iOS4" by Matt Neuburg (O'Reilly) > > David > > >

inApp Purchases

2011-06-03 Thread Development
How do you decode the information sent from apple when you verify a receipt? I send the data to apple and they send what appears to be a json object back however I have tried a bunch of ways to decode the json object and all I get is a null return. I'm using a php script for the verify. Is th

Re: Good and updated book for iPhone development

2011-06-03 Thread David Rowland
I like "Programming iOS4" by Matt Neuburg (O'Reilly) David On Jun 2, 2011, at 1:37 AM, Wilker wrote: > Hi Guys, > > I have some general experience on programming (8 years) but I'm just > starting on Cocoa / Objective-C world now. > Currently I'm reading the: Cocoa Programming by Pragmatic > Pr

Good and updated book for iPhone development

2011-06-03 Thread Wilker
Hi Guys, I have some general experience on programming (8 years) but I'm just starting on Cocoa / Objective-C world now. Currently I'm reading the: Cocoa Programming by Pragmatic Programmers Thi

Re: NSTerminateLater and thread

2011-06-03 Thread Peter Lübke
Besides from the fact I didn't care about the aborted logout, I was wrong anyway due to bad memory :( But you can bring up an application modal window after detaching the secondary thread in applicationShouldTerminate, giving the user options like cancelling, showing a progress indicator et

Re: Multi-OS API Question

2011-06-03 Thread Ken Thomases
On Jun 3, 2011, at 6:57 PM, Heizer, Charles wrote: > I'm using some API's which are only available on 10.5 and above but I want to > compile my app to run on 10.4 and higher. How can I include multiple bits of > code so that if the system is running 10.4 it will run "Code A" and if 10.5 > and h

Why is my app generating warnings about "Deregistering for sleep notifications"?

2011-06-03 Thread G S
Hi all. Looking over some logs from my phone, I'm seeing lots of : [Warning] Deregistering for sleep notifications when we have not registered and also Warning>: [Warning] IORegisterForSystemPower failed I'm also getting "deny iokit-open RootDomainUserClient." It's pretty much the combo that

Re: Programmatically displaying UISplitViewController popover?

2011-06-03 Thread Rick Mann
On Jun 3, 2011, at 11:54 , Evadne Wu wrote: > So you have the bar button item and tapping it works; I believe tapping it > just invokes its action on its target and there is no much wizardry in thaqt. > Is the item we’re talking about the same item that the split view controller > sends to yo

Multi-OS API Question

2011-06-03 Thread Heizer, Charles
Hello, I'm using some API's which are only available on 10.5 and above but I want to compile my app to run on 10.4 and higher. How can I include multiple bits of code so that if the system is running 10.4 it will run "Code A" and if 10.5 and higher run "Code B"? Example if ( os == 104 ) {

Re: OS + iOS best practice

2011-06-03 Thread Jens Alfke
On Jun 3, 2011, at 1:29 PM, Evadne Wu wrote: > As for the SQLite file, I am never sure if Core Data’s OS X implementation > and iOS implementation share the same format and will continue to be so SQLite’s file format is 100% consistent cross-platform. And I have no reason to think the same’s n

Re: OS + iOS best practice

2011-06-03 Thread Evadne Wu
As for the SQLite file, I am never sure if Core Data’s OS X implementation and iOS implementation share the same format and will continue to be so, and it is surely a very strong and valid idea to just use an intermediate format you control, I’ve been bouncing them across OS X & iOS with no prob

Re: NSTerminateLater and thread

2011-06-03 Thread Leonardo
Thank you Kyle, however, I realize, it's incredible there is no way to execute a task before quitting the app. I easily run a task at launch but I can't run a task before quit. The problem is that the task could a few minutes and the app should remain responsive to the user, in the best Mac traditi

Re: OS + iOS best practice

2011-06-03 Thread Amy Gibbs
Thanks Sounds like dropbox would be a good fit, I'll download the ask and give it a go. My current mac app stores the data in a sqllite file that I'm hoping to just sync with dropbox. However it does currently also store images in a directory and just store the paths as string attributes. Not s

Re: OS + iOS best practice

2011-06-03 Thread Jeffrey Walton
On Fri, Jun 3, 2011 at 2:48 PM, Evadne Wu wrote: > Dropbox sync is good for a pile of files, but no more than that.  Let’s > rebound the requirements: > > * there’s a single user Core Data app > * want an iPad version of the app > * the two versions will sync up > > Given the requirements, and ad

Re: Programmatically displaying UISplitViewController popover?

2011-06-03 Thread Evadne Wu
So you have the bar button item and tapping it works; I believe tapping it just invokes its action on its target and there is no much wizardry in thaqt. Is the item we’re talking about the same item that the split view controller sends to you in -splitViewController:willHideViewController:with

Re: OS + iOS best practice

2011-06-03 Thread Evadne Wu
Dropbox sync is good for a pile of files, but no more than that. Let’s rebound the requirements: * there’s a single user Core Data app * want an iPad version of the app * the two versions will sync up Given the requirements, and add the fact that I’m pretty sure that Dropbox would keep conflic

Re: OS + iOS best practice

2011-06-03 Thread Jens Alfke
On Jun 3, 2011, at 11:04 AM, Amy Heavey wrote: > I've got a fairly basic core data app that I've written for personal use on > my iMac. I'd like to have an iPad version as it would be very useful to have > whilst I was mobile. (It's basically a customer/product database). > > Is there a best w

Re: Programmatically displaying UISplitViewController popover?

2011-06-03 Thread Rick Mann
On Jun 3, 2011, at 5:42 , Roland King wrote: > Which bit can't you do? Are you having trouble opening the popover (in which > case you just want to call the code which would be called if you pressed the > button, just call it programatically) or are you having trouble figuring out > when your

Re: NSTerminateLater and thread

2011-06-03 Thread Kyle Sluder
2011/6/3 Peter Lübke : > Return NSTerminateCancel when applicationShouldTerminate calls > ExecuteLogOutTask to be performed in a secondary thread. > At the end of your ExecuteLogOutTask method, call something like > [myApplicationDelegate performSelectorOnMainThread:(logOutTaskDidFinish) >  withObj

Re: OS + iOS best practice

2011-06-03 Thread John Joyce
Could indeed be easiest solution ;) You could also look at how you serialize or save data for export / import between two environments. Just have it custom save out to a standard plist format or a simple xml schema. Then you can decouple that from the CoreData versioning and differences. Internall

Re: NSTerminateLater and thread

2011-06-03 Thread Peter Lübke
Return NSTerminateCancel when applicationShouldTerminate calls ExecuteLogOutTask to be performed in a secondary thread. At the end of your ExecuteLogOutTask method, call something like [myApplicationDelegate performSelectorOnMainThread: (logOutTaskDidFinish) withObject:nil waitUntilDone:NO].

Re: OS + iOS best practice

2011-06-03 Thread Amy Heavey
Thanks, It's an app for just me really. I just prefer to work on a desktop mac when I'm in the house, and I can't carry my iMac with me :) I do find typing much easier on an actual keyboard. Maybe I should just get a keyboard for the iPad? Many Thanks Amy On 3 Jun 2011, at 7:11PM, John

Re: OS + iOS best practice

2011-06-03 Thread John Joyce
On Jun 3, 2011, at 1:04 PM, Amy Heavey wrote: > I hope this appropriate for this list, if not please accept my apologies. > > I've got a fairly basic core data app that I've written for personal use on > my iMac. I'd like to have an iPad version as it would be very useful to have > whilst I wa

Re: Handling NSRunLoop with AUGraph

2011-06-03 Thread Kyle Sluder
On Thu, Jun 2, 2011 at 10:05 PM, Sasikumar JP wrote: > Hi, > > I am working on streaming audio application. > > Sorry for cross posting, I am facing the issue with NSRunLoop and AUGraph. coreaudio-api is still the better list to post to. Everything in userland deals with runloops (either NSRunLoo

OS + iOS best practice

2011-06-03 Thread Amy Heavey
I hope this appropriate for this list, if not please accept my apologies. I've got a fairly basic core data app that I've written for personal use on my iMac. I'd like to have an iPad version as it would be very useful to have whilst I was mobile. (It's basically a customer/product databa

Re: iOS: drawing the end of a CGPath differently

2011-06-03 Thread David Duncan
On Jun 3, 2011, at 10:16 AM, Nathan Sims wrote: > How would I go about drawing a terminus at the end of a path? I'm drawing a > path in an overlay to a MKMapView, but I would like to somehow designate the > end point of the path to differentiate it from the rest of the path. > >CGContex

iOS: drawing the end of a CGPath differently

2011-06-03 Thread Nathan Sims
How would I go about drawing a terminus at the end of a path? I'm drawing a path in an overlay to a MKMapView, but I would like to somehow designate the end point of the path to differentiate it from the rest of the path. CGContextAddPath(context,path); CGContextSetRGBStrokeColor

Re: Programmatically displaying UISplitViewController popover?

2011-06-03 Thread Roland King
Which bit can't you do? Are you having trouble opening the popover (in which case you just want to call the code which would be called if you pressed the button, just call it programatically) or are you having trouble figuring out when your app is launched in portrait mode, which you could do by

NSTerminateLater and thread

2011-06-03 Thread Leonardo
I would like my application executes a given task before the log-out. I almost succeeded but since this task could take a few minutes and since I have to launch it on a separated thread (so the user could stop it), I am getting some trouble. In the applicationShouldTerminate method, I know that th

Re: Programmatically displaying UISplitViewController popover?

2011-06-03 Thread Evadne Wu
It would help a lot if you post code from the failed effort ;). -ev On Jun 3, 2011, at 12:44, Rick Mann wrote: > To aid discoverability, we'd like for our app, which presents a > UISplitViewController, when launched in portrait mode, to automatically open > the popover to reveal the contents o