aka RedditBar, Mac OS X menu bar reddit client
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

AppDelegate.h 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // AppDelegate.h
  3. // RedditBar
  4. //
  5. // Created by Thomas Buck on 30.11.13.
  6. // Copyright (c) 2013 xythobuz. All rights reserved.
  7. //
  8. #import <Cocoa/Cocoa.h>
  9. #import "PrefController.h"
  10. #import "StateModel.h"
  11. #import "Reddit.h"
  12. @interface AppDelegate : NSObject <NSApplicationDelegate>
  13. @property (atomic, retain) IBOutlet NSMenu *statusMenu;
  14. @property (atomic, retain) IBOutlet NSApplication *application;
  15. @property (weak) IBOutlet NSMenuItem *firstMenuItem;
  16. @property (atomic, retain) NSStatusItem *statusItem;
  17. @property (atomic, retain) NSImage *statusImage;
  18. @property (atomic, retain) NSImage *statusHighlightImage;
  19. @property (atomic, retain) PrefController *prefWindow;
  20. @property (atomic, retain) StateModel *currentState;
  21. @property (atomic, retain) Reddit *api;
  22. @property (atomic, retain) NSArray *menuItems;
  23. @property (atomic, retain) NSArray *redditItems;
  24. -(IBAction)showPreferences:(id)sender;
  25. -(IBAction)showAbout:(id)sender;
  26. -(IBAction)linkToOpen:(id)sender;
  27. -(void)reloadListWithOptions;
  28. -(void)reloadListIsAuthenticatedCallback;
  29. -(void)reloadListNotAuthenticatedCallback;
  30. -(void)reloadListHasSubredditsCallback:(NSArray *)items;
  31. -(void)reloadListHasFrontpageCallback:(NSArray *)items;
  32. -(void)prefReturnName:(NSString *)name Modhash:(NSString *)modhash subscriptions:(Boolean)subscriptions subreddits:(NSString *)subreddits length:(NSInteger)length;
  33. @end