Re: Problems with UIButton still calling renamed method
Re: Problems with UIButton still calling renamed method
- Subject: Re: Problems with UIButton still calling renamed method
- From: Laurent Daudelin <email@hidden>
- Date: Tue, 29 Jun 2010 03:49:15 -0400
I think I found it. The simulator. It seems that Xcode doesn't replace the copy of the app there and I'm guessing the app will always default to the non-localized xib files if present. As soon as I deleted my app from the simulator, made my files localizable again and did a build, my changes were then visible. This is a nasty gotcha....
-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/
Logiciels Nemesys Software email@hidden
On Jun 29, 2010, at 03:29, Alexander Spohr wrote:
> Usually this happens when you localize an unlocalized version. Then you have the nib inside English.lproj and in the apps directory you still have the nib as a global resource because Xcode does not delete the now localized resources.
>
> You said you deleted the build-directory - obviously you did not ;)
>
> Delete your build-directory after you localized. Then build again. Will work.
>
> atze
>
>
>
> Am 29.06.2010 um 09:25 schrieb Laurent Daudelin:
>
>> On Jun 29, 2010, at 02:32, Alexander Spohr wrote:
>>
>>>>> - Change the layout. Does it reflect in the simulator?
>>>
>>>> The new button I put in my view didn't have any title. When I built and ran my app, the button automagically had "Sign in" as its title!
>>>
>>> Did you actually move the button to some different location? Try that and report if it is at the new position in the simulator.
>>> If not, you still have some old nib or even an old app around somewhere.
>>
>> OK, it seems to be related with the localization. If I remove the localization for my nib, then I see my changes. If I make the file localized again, then all the future changes I do in Interface Builder don't appear in the build. Of course, I close the document in IB each time I remove the localization or add one. This is really strange as I can't find any other copy of that xib file anywhere in my project. I just reproduced it. I did quit IB, made the files localizable again, then opened one in IB, made a visual change, saved, came back in Xcode, did a clean, build and run in the simulator in debug mode and my change is not visible.
>>
>> Can anybody explain that?
>>
>> -Laurent.
>> --
>> Laurent Daudelin
>> AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/
>> Logiciels Nemesys Software email@hidden
>>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden