0

i created a clock by SubClassing the NSView. now i want create many clocks programatically and pass the time zone value to each and every clock. how can i pass the desired timeZone value to the subClassed NSview.

Muruganandham K
  • 5,271
  • 5
  • 34
  • 62

1 Answers1

0

Just create a variable in the .h of the class:

@property (nonatomic, strong) NSString *timeZone

And reference it where you create the clock:

myNewClock.timezone = "GMT"
Antonio MG
  • 20,382
  • 3
  • 43
  • 62