Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 22, 2013, 07:57 PM   #1
DavidBlack
macrumors 6502
 
Join Date: Jan 2013
Location: Somewhere In Apple's HQ ;)
How to Implement Trial Time in App

I want to Implementing a 15 day time trial
for my app I read this guide but I am having problem I am a objective-C newbie this is how it looks in xcode. Also if anyone can help can your show me exactly how to do it?
Thanks

http://cocoadev.com/wiki/SetADateForAnAppToExpire
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2013-03-22 at 8.56.00 PM.png
Views:	144
Size:	411.4 KB
ID:	403988  
DavidBlack is offline   0 Reply With Quote
Old Mar 22, 2013, 08:04 PM   #2
gnasher729
macrumors G5
 
gnasher729's Avatar
 
Join Date: Nov 2005
Quote:
Originally Posted by DavidBlack View Post
I want to Implementing a 15 day time trial
for my app I read this guide but I am having problem I am a objective-C newbie this is how it looks in xcode. Also if anyone can help can your show me exactly how to do it?
Thanks

http://cocoadev.com/wiki/SetADateForAnAppToExpire
I assume you intend to sell this app. With this code in your app, there is no chance in hell it would be accepted on the App Store, so that's 90% of your sales gone.
gnasher729 is online now   0 Reply With Quote
Old Mar 22, 2013, 08:50 PM   #3
DavidBlack
Thread Starter
macrumors 6502
 
Join Date: Jan 2013
Location: Somewhere In Apple's HQ ;)
Nope I don't want to sell it in the App Store.
DavidBlack is offline   0 Reply With Quote
Old Mar 22, 2013, 09:01 PM   #4
ArtOfWarfare
macrumors 603
 
ArtOfWarfare's Avatar
 
Join Date: Nov 2007
Send a message via Skype™ to ArtOfWarfare
I'm going to take a guess that you haven't a clue what you're doing and copied this code from a tutorial.

Look at the spots where the errors are coming from and compare them to what was in the tutorial.

... oh... it's identical. What a crappy tutorial.

Do you know C yet? I suggest learning C if you don't already know it, as Obj-C is just an extension of C.

Here's a free eBook that I oft recommend for learning C: http://c.learncodethehardway.org/book/
__________________
Don't tell me Macs don't last: 2007 iMac, 2007 Mac Mini, 2008 MacBook Air, all Vintage.
(iMac obsoletion: April 28, 2015, MBA: October 14, 2015, Mac Mini: March 9, 2016)
ArtOfWarfare is online now   0 Reply With Quote
Old Mar 23, 2013, 10:28 AM   #5
truehybridx
macrumors member
 
Join Date: Dec 2010
If you managed to implement the other parts like the PDF viewer surely you can see the problem with the brackets ( [ ) on the first date line, even out those and itll work
truehybridx is offline   0 Reply With Quote
Old Mar 23, 2013, 12:45 PM   #6
ArtOfWarfare
macrumors 603
 
ArtOfWarfare's Avatar
 
Join Date: Nov 2007
Send a message via Skype™ to ArtOfWarfare
Quote:
Originally Posted by truehybridx View Post
If you managed to implement the other parts like the PDF viewer surely you can see the problem with the brackets ( [ ) on the first date line, even out those and itll work
His brackets already balance. His issue is he has brackets surrounding things that aren't method calls.
ArtOfWarfare is online now   0 Reply With Quote
Old Mar 25, 2013, 11:35 AM   #7
Sonnestah
Banned
 
Join Date: Mar 2013
from your code I can see you have no programming knowledge. I suggest you to read basic programming tutorials before anything related to obj-c
Sonnestah is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
YouTube to Implement Offline Viewing Mode in iOS App This November MacRumors iOS Blog Discussion 30 Sep 19, 2013 10:08 PM
General: A tweak to implement Command-tab app switching? kylera Jailbreaks and iOS Hacks 0 Feb 6, 2013 05:55 AM
How to set-up In App Purchase free trial period in iOS app mr-plef iPhone/iPad Programming 0 Sep 6, 2012 05:47 AM
Is iPhoto a Trial App. On a new Mac? 420benz iMac 5 Jul 16, 2012 09:22 PM
Got a trial then bought the app but didn't get it so can't get it... duncyboy Mac Applications and Mac App Store 5 Jul 14, 2012 09:17 AM

Forum Jump

All times are GMT -5. The time now is 08:53 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC