Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (23 sloc) 0.597 kb
//
// Clip.m
// BitLy
//
// Created by Dmitry Krassovski on 20.04.09.
// Copyright 2009 Getalime. All rights reserved.
//
#import "Clip.h"
@implementation Clip
@synthesize string_;
- (void)getData
{
NSPasteboard * board = [NSPasteboard generalPasteboard];
string_ = [board stringForType: NSStringPboardType];
}
- (void)setData:(NSString *) string
{
NSPasteboard * board = [NSPasteboard generalPasteboard];
[board declareTypes: [NSArray arrayWithObject: NSStringPboardType]
owner: nil];
[board setString: string forType: NSStringPboardType];
}
@end
Jump to Line
Something went wrong with that request. Please try again.