kimptoc / MGTwitterEngine-1.0.8-OAuth

Quick hack to get OAuth logins with MGTwitterEngine
34 stars 2 forks source link

Error "Cocoa/Cocoa.h" no such file or directory. #1

Open sweetie85 opened 13 years ago

sweetie85 commented 13 years ago

Hi,

I downloaded the project and when I am trying to run it I get the following error.

Error "Cocoa/Cocoa.h" no such file or directory.

Can you please provide me steps on how to resolve this error.

Thanks.

kimptoc commented 13 years ago

Cocoa/Cocoa.h does not sound right for an iPhone app -are you working on a desktop app? To be honest this is quite old now, there are much better options available, see my last couple of comments on here: http://code.google.com/p/oauthconsumer/issues/detail?id=3

sweetie85 commented 13 years ago

Hi, Thanks for teh reply. i am getting teh same error when I work with github MGTwitterengine

kimptoc commented 13 years ago

Hi,

I see its in 3 files:

./AppController.h - I dont use this and exclude it from my app... ./main.m - I dont use this and exclude it from my app... ./MGTwitterEngineGlobalHeader.h - this one is in my app, uses #def to switch between OSX or iOS versions, like so:

if TARGET_OS_IPHONE

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

else

#import <Cocoa/Cocoa.h>

endif

So, should do the right thing...

sweetie85 commented 13 years ago

Thank you. I have one more question. When I have to post a tweet I want to use geotagging before I post the tweet in my app. Can you please guide me on how to do that.

kimptoc commented 13 years ago

Sorry, not done that myself. Good luck, chris

sweetie85 commented 13 years ago

Hi Chris,

This is last question. Sorry for bothering you. But I am not getting help anywhere. Hi,

I am using MGTwitterengine code to pull friends and followers using teh following code:

[_twitterengine getFollowersIncludingCurrentStatus:YES];

When I use this method to pull followers the method is pulling only 100 followers where as I have 800 followers.

How do I get all followers information in a tableview.

Any help is appreciated.

Thanks.

kimptoc commented 13 years ago

Again, not done that. There are some methods which have a count/page parameters, but not that one, maybe you can amend it using the others as examples. I would suggest looking at the more modern libraries as they may have a better solution for this.