• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: IB Doesn't Get Renamed Action in Custom Class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IB Doesn't Get Renamed Action in Custom Class


  • Subject: Re: IB Doesn't Get Renamed Action in Custom Class
  • From: Jerry Krinock <email@hidden>
  • Date: Fri, 4 Jan 2008 14:53:27 -0800


On 2008 Jan, 04, at 11:41, Jonathan Hess wrote:

Interface Builder can't tell the difference between add and a delete of an action and a rename if you just edit the source code.

I know. That's why I saved the header file in Xcode, then returned to IB and did "Synchronize with Xcode" and "Read Class Files". But still, IB does not "get" the new name.


IB is complaining because it has a connection which references the old action name.

No, I have not seen any complaints from IB. When I run the project, the Cocoa run-time complains because the old action is not available. That is understandable.


IB knows about the new name, it just doesn't know that the new name is a replacement for the old name. You'll have to disconnect the old action in IB, and reconnect it to the new selector. As soon as you disconnect the action, and IB re-syncs, the old definition will go away.

I wish it were so. The new name does not show up in the Inspector or the HUD so I cannot connect to it. I just disconnected the old connection as you suggested, again "Synchronize with Xcode" and again "Read Class Files", but still no good. New action name does not appear in Inspector and does not appear in the HUD. Old action name remains in both places. IB seems very happy with it.


That said, Xcode's refactoring feature would have done all of this automatically.

Which is why I tried that before sending my original post, but Refactor didn't work either. As I said, the nib did not appear in the list of files to be modified in the Refactor window. Is that a clue? In the filesystem, this nib, and the associated window controller .h and .m files, are outside this project's folder, because they are one of my multi-project "commonly-used kits". But the nib is included in Groups & Files. Why didn't Refactor parse it and find the old name?


Good Luck -

I've not been having any of that either. DSL line has been down for 3 hours due to wind blowing phone lines, causing impulse noise that rarely allows modem to sync and connect. If the wind dies down, I'll be able to get the next reply sooner!


Thanks,

Jerry

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: IB Doesn't Get Renamed Action in Custom Class
      • From: Jonathan Hess <email@hidden>
References: 
 >IB Doesn't Get Renamed Action in Custom Class (From: Jerry Krinock <email@hidden>)
 >Re: IB Doesn't Get Renamed Action in Custom Class (From: Jonathan Hess <email@hidden>)

  • Prev by Date: Re: Xcode3.0 and not fired breakpoints
  • Next by Date: Re: replacing a superclass in the nib
  • Previous by thread: Re: IB Doesn't Get Renamed Action in Custom Class
  • Next by thread: Re: IB Doesn't Get Renamed Action in Custom Class
  • Index(es):
    • Date
    • Thread