Forum Discussion

Lou P.6's avatar
Lou P.6
Helpful | Level 6
10 years ago

is it possible to use api from an NSObject class vs a View Controller?

I want to create a file utility that isn't tied to a View Controller.  I have one connection to the API working in a View Controller, but I'd like to create a standard NSObject module and simply instantiate a connection to the Dropbox API and do all the file work from there.

It calls the app delegate but the API never calls back... 

Am I asking for too much to have just any Objective C program call on it's own?  (by the way I will move to swift once I'm done with this version)

1 Reply

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    Hi Lou, I'm not sure I fully follow your question. Can you clarify what you mean by "It calls the app delegate but the API never calls back", and share some sample code? Thanks in advance! 

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!