Sharing Twitter and Facebook Native


/ Published in: C
Save to your folder(s)



Copy this code and paste it in your HTML
  1. //
  2. // NPAppDelegate.h
  3. // CDNowPlaying
  4. //
  5. // Created by Cubi-Development 26/5/2013.
  6. // Copyright (c) 2013 Cubi-Development Inc. All rights reserved.
  7. //
  8. //
  9. // ^^^___^^^^^^_^^^^^_^^^^^^^^^___^^^^^^^^^^^^^^^_^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^_^^^
  10. // ^^/^__\^^^_|^|__^(_)^^^^^^^/^^^\_____^^^_____|^|^___^^_^__^^_^__^___^^^___^_^__^|^|_^
  11. // ^/^/^|^|^|^|^'_^\|^|_____^/^/\^/^_^\^\^/^/^_^\^|/^_^\|^'_^\|^'_^`^_^\^/^_^\^'_^\|^__|
  12. // /^/__|^|_|^|^|_)^|^|_____/^/_//^^__/\^V^/^^__/^|^(_)^|^|_)^|^|^|^|^|^|^^__/^|^|^|^|_^
  13. // \____/\__,_|_.__/|_|^^^^/___,'^\___|^\_/^\___|_|\___/|^.__/|_|^|_|^|_|\___|_|^|_|\__|
  14. // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^|_|^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  15. //
  16.  
  17.  
  18.  
  19. #import <Cocoa/Cocoa.h>
  20. #import "iTunes.h"
  21.  
  22. extern NSString * const ShouldShowArtist;
  23. extern NSString * const ShouldShowAlbum;
  24. extern NSString * const ShouldShowArtwork;
  25. extern NSString * const ShouldShowRating;
  26. extern NSString * const ShouldShowURL;
  27.  
  28. @interface NPAppDelegate : NSObject <NSApplicationDelegate,NSSharingServiceDelegate>
  29. {
  30. NSWindow *window;
  31. IBOutlet NSMenu *statusMenu;
  32. NSStatusItem *statusItem;
  33. IBOutlet NSMenuItem *twitter;
  34. IBOutlet NSMenuItem *login;
  35. IBOutlet NSMenuItem *showArtistMenuItem;
  36. IBOutlet NSMenuItem *showAlbumMenuItem;
  37. IBOutlet NSMenuItem *showArtworkMenuItem;
  38. IBOutlet NSMenuItem *showRatingMenuItem;
  39. IBOutlet NSMenuItem *showShareURLMenuItem;
  40. }
  41.  
  42. @property (strong) IBOutlet NSMenuItem *login;
  43. @property (nonatomic, retain) IBOutlet NSMenuItem *showArtistMenuItem;
  44. @property (nonatomic, retain) IBOutlet NSMenuItem *showAlbumMenuItem;
  45. @property (nonatomic, retain) IBOutlet NSMenuItem *showArtworkMenuItem;
  46. @property (nonatomic, retain) IBOutlet NSMenuItem *showRatingMenuItem;
  47. @property (nonatomic, retain) IBOutlet NSMenuItem *showShareURLMenuItem;
  48.  
  49. @end
  50.  
  51.  
  52.  
  53. // Copyright (c) 2013 Cubi-Development Inc. All rights reserved.
  54.  

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.