Discussion Forums  >  Uncategorized

Replies: 4    Views: 247

Banack
Aspiring developer
Profile
Posts: 6
Reg: Mar 20, 2011
NY
60
03/22/11 05:02 PM (14 years ago)

Unable to Modify Xcode scripts.

Sorry for making another topic so soon, guys, but I am curious as to why this isn't working... So, I've been looking through the source of my project and if I change a piece of code (a color, for example), it isn't updated in the simulator. I've saved the project, refreshed the simulator, closed the simulator, closed and reopened the source file but I still have no luck. If I redownload, all my modified scripts are reset. I'm able to edit the Localized text just fine, but actual scripts I seem to fail with. Is there any reason why this is happening? How, if possible, can I modify the source myself (I understand *how* to, I just seem to have trouble doing so)? Thank you.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/23/11 01:51 AM (14 years ago)
No need to be sorry for asking questions... all good. So, I'm a little confused about what you're asking. If you modify the Objective - C source code after downloading your project, then download another copy, of course what you change locally on your machine in Xcode isn't going to be the same. How could it be, you re-downloaded another copy of the files. Maybe I'm missing something. You're free to modify whatever code you want. But, if you re-download the project you're going to lose your changes. I think I must be missunderstanding what you're asking, this makes zero sense. LOL.
 
Banack
Aspiring developer
Profile
Posts: 6
Reg: Mar 20, 2011
NY
60
like
03/23/11 04:22 PM (14 years ago)
Haha, sorry. Now that I read this while I'm not half asleep, it doesn't make a whole lot of sense. Okay, for example, say I want to change the font color of low and high in audio player. I go into the script BT_audioPlayer.m and change volumeLowLabel.textColor = [UIColor whiteColor]; to volumeLowLabel.textColor = [UIColor redColor];. Now, in the project, the modified text remains intact, but to no prevail am I getting results in the simulator. It just remains white. Same with changing font sizes and various other things. Nothing gets updated aside from Localizable.strings.
 
Banack
Aspiring developer
Profile
Posts: 6
Reg: Mar 20, 2011
NY
60
like
03/23/11 05:49 PM (14 years ago)
Aha! Figured it out. Turns out the changes only apply to the audio when it is being played while viewing an image (not the streaming audio page). Strange. Thanks for the concern, though. It's much appreciated. :)
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/23/11 09:51 PM (14 years ago)
Happy to do my part. Stoked that you're digging around in the OBjective - C. Cool.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.