Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 2021a1e934
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 63 lines (50 sloc) 1.197 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
//
// Message.m
// Noise
//
// Created by Joshua Bassett on 2/12/09.
// Copyright 2009 CLEAR Interactive. All rights reserved.
//

#import "Message.h"

@implementation Message

@dynamic id, source, title, content, received;

- (void)read {
  [self setUnread:NO];
}

- (int)priority {
  [self willAccessValueForKey:@"priority"];
  int value = priority ;
  [self didAccessValueForKey:@"priority"];
  return value;
}

- (void)setPriority:(int)value {
  [self willChangeValueForKey:@"priority"];
  priority = value;
  [self didChangeValueForKey:@"priority"];
}

- (BOOL)unread {
  [self willAccessValueForKey:@"unread"];
  BOOL value = unread;
  [self didAccessValueForKey:@"unread"];
  return value;
}

- (void)setUnread:(BOOL)value {
  [self willChangeValueForKey:@"unread"];
  unread = value;
  [self didChangeValueForKey:@"unread"];
}

- (BOOL)sticky {
  [self willAccessValueForKey:@"sticky"];
  BOOL value = sticky;
  [self didAccessValueForKey:@"sticky"];
  return value;
}

- (void)setSticky:(BOOL)value {
  [self willChangeValueForKey:@"sticky"];
  sticky = value;
  [self didChangeValueForKey:@"sticky"];
}

- (NSImage *)icon {
return [NSImage imageNamed:@"NSApplicationIcon"];
}

@end
Something went wrong with that request. Please try again.