views:

17

answers:

0

One of the features I plan to have in the extension I'm writing is that the current time populates the carrier field instead of the actual carrier, and the time in the middle is hidden. In other words, I want the phone to set a fake carrier to the current time whenever the time changes. I took a look at Ryan Petrich's code for his extension WiCarrier, but it throws me off a little as my extension does not use his hooking library, CaptainHook.

In the SBStatusBarDataManager class, there is a struct with two char arrays, serviceString[100] and timeString[100]. I would like to hook the method (void)_updateTimeString, set the serviceString array to timeString array, then call the original (void)_updateServiceString method. However, I don't know how I'm supposed to get the timeString array or set the serviceString array. Should I use the class' sharedDataManager to access and mutate them? If so, how?

Thanks