Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
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 Demi-God
 
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:	128
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 offline   0 Reply With Quote
Old Mar 22, 2013, 08:50 PM   #3
DavidBlack
Thread Starter
macrumors Demi-God
 
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 601
 
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/
__________________
Battery Status - On the Mac App Store
The only app that'll estimate when your wireless devices will need their batteries changed.
Including the ones paired with other Macs on your network.
ArtOfWarfare is offline   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 601
 
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 offline   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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:47 AM.

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

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