Codestyle

Signed-off-by: michael starke <michael.starke@hicknhack-software.com>
This commit is contained in:
michael starke
2015-12-09 14:19:01 +01:00
parent c2472f940d
commit 8812481568
4 changed files with 9 additions and 6 deletions

View File

@@ -65,9 +65,9 @@ NSString *const MPPasteBoardControllerDidClearClipboard = @"com.hicknhack.macpas
- (void)stashObjects {
self.stashedObjects = [NSMutableArray array];
for (NSPasteboardItem *item in [[NSPasteboard generalPasteboard] pasteboardItems]) {
for (NSPasteboardItem *item in [NSPasteboard generalPasteboard].pasteboardItems) {
NSPasteboardItem *newItem = [[NSPasteboardItem alloc] init];
for (NSString *type in [item types]) {
for (NSString *type in item.types) {
NSData *data = [[item dataForType:type] mutableCopy];
if (data) {
[newItem setData:data forType:type];