Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do we call "public class Cache<T: NSCoding> " #83

Closed
mobileprogrammingAnurag opened this issue Aug 26, 2016 · 2 comments
Closed

How do we call "public class Cache<T: NSCoding> " #83

mobileprogrammingAnurag opened this issue Aug 26, 2016 · 2 comments

Comments

@mobileprogrammingAnurag
Copy link

mobileprogrammingAnurag commented Aug 26, 2016

i am trying like this
AwesomeCache.Cache(name: name, directory: cachePath)

but it's throwing me an error 'NSCoding' cannot be used as a type conforming to protocol 'NSCoding' because 'NSCoding' has static requirements

@aschuch
Copy link
Owner

aschuch commented Nov 15, 2016

AwesomeCache is a generic class, thus you need to add the type of the objects you want to store in the cache when instantiating the instance.

let cache = Cache<NSData>(name "foo")

@mobileprogrammingAnurag
Copy link
Author

Hey ,

Thanks, Alex i figured this out .i really appreciate you for your email.

On Tue, Nov 15, 2016 at 4:45 PM, Alexander Schuch notifications@github.com
wrote:

AwesomeCache is a generic class, thus you need to add the type of the
objects you want to store in the cache when instantiating the instance.

let Cache(name "foo")


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#83 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/APvjTkiN9dqdvYhpAtQ-DUizsCXxl0Iaks5q-if2gaJpZM4JuhZW
.

Thanks,
Anurag Yadav
iOS Developer
Mobile Programming
(818) 416-0961

Disclaimers

This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
This message may contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail. if you have received this e-mail by mistake delete
this e-mail from your system. If you are not the intended recipient, you
are notified that disclosing, copying, distributing or taking any action in
reliance on the contents of this information is strictly prohibited.

@aschuch aschuch closed this as completed Nov 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants