Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Darkroom

Guest
Original poster
Dec 15, 2006
2,445
0
Montréal, Canada
i found a very nice podcast from cocoacast.com on how to set up Aquatic Prime in an application...

link is here: http://www.cocoacast.com/?q=node/179 - the presenter has a cool french accent too ;)

the sample app that is made uses an NSTextField, where the user will copy the .plist text code (license code from Aquatic Prime) into the text field and press the "validate" button...

but i'd like to know how to make an NSTextView to a drop zone to accept the .plist file, and have the "validate" button automatic on drop... i have been combing the internet in search of a tutorial, but i can't seem to find one that isn't super advanced... so far i'm under the impression that NSPasteBoard is involved...

anyone know of a good tutorial concerning turning an NSTextView into a drop zone for files?
 
Look at this sample code: https://home.devklog.net/svn/mpqdraft/cocoa/FileDropView.m

NSTextView is based on NSView so you can subclass NSView add stuff to it like accepting a file drop. You would need to link the droped file to Aquatic Prime for processing and then show some result in NSTextView.

Of course you can always just make a button and do an NSOpenPanel route.

Drag 'n' drop should be a shortcut, not the default method to do stuff. Users may have a bunch of windows open, multiple spaces, multiple monitors etc. so dragging a file from some random place to your window may be more work than just using the mini-Finder view in the NSOpenPanel.
 
Look at this sample code: https://home.devklog.net/svn/mpqdraft/cocoa/FileDropView.m
Drag 'n' drop should be a shortcut, not the default method to do stuff. Users may have a bunch of windows open, multiple spaces, multiple monitors etc. so dragging a file from some random place to your window may be more work than just using the mini-Finder view in the NSOpenPanel.

You should also (IMO) associate the file type of your license file with your app so that double clicking it will automatically open the license file in your app and register the app.
 
Easily Crackable?

I didn't know what Aquatic Prime was so I googled it and found a lot of items like these:

http://www.xchg.info/ARTeam/Tutoria...)/Defeating AquaticPrime Licensing Scheme.pdf

http://toxicsoftware.com/aquaticprime-warning.html

http://www.cocoalab.com/?q=codexfab

http://stackoverflow.com/questions/...s-are-using-the-aquaticprime-licensing-system

http://www.cocoabuilder.com/archive/cocoa/226261-shareware-licensing-aquatic-prime.html

You can digitally sign your application with XCode. I use Receigen to generate the authentication code. This is probably much more secure.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.