Recently in cocoa Category

Faces512.pngII'm finally releasing my first app, Faces.app, as a beta. Faces is an OS X desktop application that manages your profile picture across your Twitter account(s). After linking your account, Faces will pull down your current avatar and display it in the grid and from there you can add any image to the grid and upload them to your account(s) with a simple drag and drop.

Faces is a beta application and currently requires OS X 10.6 and an active Twitter account. The app will remain free for the 1.0 cycle and will remain in beta until I get OAuth implemented before the June cutoff for basic auth via Twitter's API.

You can download the latest here (ver 1.0b7). Download temporarily removed due to issues at Twitter with profile images, see this update

grid.pngdrop.jpgnotification.png

MGTwitterEngine update

Yesterday I updated the main branch of MGTwitterEngine by combining my fork with tarasis and alexrepty forks. With over 35 some commits in all, I felt lucky there was very little manual merging required.

Since Matt has created and official source of MGTwitterEngine I feel like it's gained a lot of momentum. There are 8 active forks, feature requests and bugs reports starting to accumulate in the issues list, and over 180 watchers.

Updates to CocoaREST

I've been adding support for the Github API to my fork of CocoaREST. Right now I've added:

  1. SDGithubTaskGetRepos: Showing a list of repositories by user
  2. SDGithubTaskGetRepoNetwork: Showing the network for a given user/repository (shows commits by forks of that repository, or commits of forks of it's parent repository)
  3. SDGithubTaskUserShow: show information about a user
  4. SDGithubTaskUserUpdate: Update user information with new name, email, blog, company or location

In addition I've added a tab to the demo app to show some of these. In it you can view user information by name (SDGithubTaskUserShow) and get a list of repositories (SDGithubTaskGetRepos). The tableview is set run a new task to find forks of the selected repository (SDGithubTaskGetRepoNetwork) on selection change.

The GithubDelegate is kind of a cumbersome class in that it handles all of the task results even though the API returns different results for each task. Ideally I would use a specialized class to delegate for each task, but it's just for demonstration.

Extending CocoaRest

My latest tinker project is a Twitterific like application that monitors your Github dashboard, showing both updates to who you follow and updates on any repositories, yours or forks of yours. From what I've seen Github's API supports all of this.

To accomplish this I'm extending Steven Degutis's CocoaREST framework to support the Github API in my fork of the project. So far I've got repository listings by username, and showing forks in the network setup. There's a lot more to integrate but I'm not sure how much I want to demo in the UI.

I also added a tab strictly for Github, with the idea being a tab for each API supported, but I haven't dug into any other API beyond Twitter or Github's I'm not sure when those will come. Patches welcome of course.

Today I posted my update to ctshryock/MGTwitterEngine which allows you to use the API's update_profile_image and update_profile_background_image. I added to the demo app a window that lets you select an image for either profile image or background image to see it in action.

I had to modify some of the internals to get this to work... originally the _sendRequestWithMethod:path:queryParameters:body:requestType:responseType: method built the NSMutableRequest object internally, but to minimize code duplication I split the initial creation of the request into a new method _baseRequestWithMethod:path:queryParameters: to do that, and added a new method _sendDataRequestWithMethod:path:queryParameters:filePath:body:requestType:responseType: . Both _sendRequest... and _sendDataRequest... call _baseRequest... to start, with the latter adding the needed form/multipart data to the request.

Stackoverflow

About this Archive

This page is an archive of recent entries in the cocoa category.

Apple is the previous category.

CocoaREST is the next category.

Find recent content on the main index or look in the archives to find all content.