Guest User

Untitled

a guest
Aug 15th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. //
  2. // SMFMenuItem.m
  3. // atvTwo
  4. //
  5. // Created by Thomas Cool on 10/26/10.
  6. // Copyright 2010 tomcool.org. All rights reserved.
  7. //
  8.  
  9. #import "SMFMenuItem.h"
  10.  
  11.  
  12. @implementation SMFMenuItem
  13. +(SMFMenuItem *)folderMenuItem
  14. {
  15. SMFMenuItem *i = [[SMFMenuItem alloc] init];
  16. [i addAccessoryOfType:1];
  17. return [i autorelease];
  18. }
  19. +(SMFMenuItem *)menuItem
  20. {
  21. SMFMenuItem *i = [[SMFMenuItem alloc] init];
  22. [i addAccessoryOfType:0];
  23. return [i autorelease];
  24. }
  25. +(SMFMenuItem *)shuffleMenuItem
  26. {
  27. SMFMenuItem *i = [[SMFMenuItem alloc] init];
  28. [i addAccessoryOfType:3];
  29. return [i autorelease];
  30. }
  31. +(SMFMenuItem *)refreshMenuItem
  32. {
  33. SMFMenuItem *i = [[SMFMenuItem alloc] init];
  34. [i addAccessoryOfType:4];
  35. return [i autorelease];
  36. }
  37. +(SMFMenuItem *)syncMenuItem
  38. {
  39. SMFMenuItem *i = [[SMFMenuItem alloc] init];
  40. [i addAccessoryOfType:5];
  41. return [i autorelease];
  42. }
  43. +(SMFMenuItem *)lockMenuItem
  44. {
  45. SMFMenuItem *i = [[SMFMenuItem alloc] init];
  46. [i addAccessoryOfType:6];
  47. return [i autorelease];
  48. }
  49. +(SMFMenuItem *)progressMenuItem
  50. {
  51. SMFMenuItem *i = [[SMFMenuItem alloc] init];
  52. [i addAccessoryOfType:7];
  53. return [i autorelease];
  54. }
  55. +(SMFMenuItem *)downloadMenuItem
  56. {
  57. SMFMenuItem *i = [[SMFMenuItem alloc] init];
  58. [i addAccessoryOfType:8];
  59. return [i autorelease];
  60. }
  61. +(SMFMenuItem *)computerMenuItem
  62. {
  63. SMFMenuItem *i = [[SMFMenuItem alloc] init];
  64. [i addAccessoryOfType:9];
  65. return [i autorelease];
  66. }
  67. -(void)setTitle:(NSString *)title
  68. {
  69. [self setText:title withAttributes:[[SMFMenuItem sharedTheme]menuItemTextAttributes]];
  70. }
  71. @end
Add Comment
Please, Sign In to add comment