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.
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"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.