Skip to content

Instantly share code, notes, and snippets.

- (id)initWithFrame:(CGRect)frame {
self = [super initWithFrame:frame];
if (self) {
// Initialization code here.
var bundle = [CPBundle mainBundle],
leftCapImage = [[CPImage alloc] initWithContentsOfFile:[bundle pathForResource:"signin-button-left-cap-up.png"] size:CGSizeMake(5, 42)],
rightCapImage = [[CPImage alloc] initWithContentsOfFile:[bundle pathForResource:"signin-button-right-cap-up.png"] size:CGSizeMake(5, 42)],
centerImage = [[CPImage alloc] initWithContentsOfFile:[bundle pathForResource:"signin-button-center-up.png"] size:CGSizeMake(93, 42)],
bezelImage = [[CPThreePartImage alloc] initWithImageSlices:[leftCapImage, centerImage, rightCapImage] isVertical:NO],
downleftCapImage = [[CPImage alloc] initWithContentsOfFile:[bundle pathForResource:"signin-button-left-cap-down.png"] size:CGSizeMake(5, 42)],
equest URL:http://test.stocktwits.com/api/account/verify_credentials.json
Request Method:GET
Status Code:200 OK
Request Headers
Authorization:Basic YXBwbGV0ZXN0ZXI6YXBwbGV0ZXN0ZXI=
Cache-Control:no-cache
If-Modified-Since:Thu, 01 Jan 1970 00:00:00 GMT
User-Agent:Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4
X-Requested-With:XMLHttpRequest
X-St:true
@dbrajkovic
dbrajkovic / .gitignore.m
Created February 16, 2011 22:53
gitignore file for Xcode Projects
# Mac OS X Finder and whatnot
.DS_Store
# Sparkle distribution Private Key (Don't check me in!)
dsa_priv.pem
# XCode (and ancestors) per-user config (very noisy, and not relevant)
*.mode1
/*
Using data serialization for client server communication
CPKeyedArchiver
CPKeyedArchiver is the easiest way to serialize your data into some string value for client/server communication (for example using CPURLRequest and CPURLConnection objects).
*/
-(void) sendAsynchRequest