2012-05-02 3 views

답변

8

대답은 분명하다 : 사용자 정의 URL 체계

를 등록

http://techblog.amphora-research.com/2010/03/registering-url-handlers-in-macos-x-cocoa-apps/

말은 무엇 : OAuth를 대한

1. Register the "twittercallbackformyapp://" 
    scheme using the link above 
2. Set this callback in the 'access_token' 
    HTTP request (oauth_callback parameter) 
3. Write the routine (handleOpenURL) to handle 
    the 'twittercallbackformyapp://oauth_access_token=...&oauth_token_secret=...' 
    which will be called after you register the handler 

많은 질문이 여기에 해결된다 : http://code.google.com/p/twitcurl/

lib 디렉토리 위 컬을 사용합니다. Cocoa 네이티브 네트워킹 API를 사용할 수 있습니다.

P.

다음은 URL 핸들러를 등록하는 방법에 대한 또 다른 설명입니다 :

http://mobiledevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html

그것은 아이폰이지만, Mac 용 패턴은 동일합니다 : 앱의 .plist 파일에 URL을 추가합니다.

+0

물론 실제 OAuth 해시와 응답에는 추가 작업이 필요합니다. –

+0

아하, 대단히 감사합니다! – user432653

+1

나는이 문제에 대해 많은 시간을 보냈습니다. 이것이 도움이된다면 다행입니다. –

관련 문제