• 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: Automated editing of binding names in nibs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automated editing of binding names in nibs


  • Subject: Re: Automated editing of binding names in nibs
  • From: lbland <email@hidden>
  • Date: Tue, 1 Dec 2009 13:23:09 -0500

On Dec 1, 2009, at 1:10 PM, Jon Hendry wrote:

> Is there any way to, in an automated fashion, batch-modify the bindings in a nib?
>
> We have plugin projects which we often 'clone' in order to produce a new, similar plugin.
>
> Each plugin has a number of nibs, which are largely similar between projects.
>
> The cloning script we have takes an existing project, and the prefix used in its class names, constants, and variables, and does all the appropriate substitutions in source code and property lists.
>
> For example, if the original project is called "Microstim Staircase", it'll use the prefix MSS throughout the project (MSSSpatialFreqCPDKey, etc). The cloning script takes "Microstim Staircase", "MSS", and a new project name and a new prefix, and processes the source files accordingly.
>
> It also changes the names of the nib files, but to update the bindings to use the new prefix, a person has to go through the nibs, find all the bindings, and change them. For example, the text field for setting Spatial Frequency needs to have its binding changed from MSSSpatialFreqCPD to XXSpatialFreqCPD. This is error-prone.
>
> Is there any way to automate this process?

hi-

See email titled: "Re: IB 3.2.x bringing back IB (only) edit of outlets and actions?" dated 10/20 - 10/22.

In the end, I opened up the xib file in TextEdit and refactored as that was the quickest path for our issues.

nib files are binary so you may not be able to do the same unless you convert to xib, but maybe the suggested refactoring path of those emails would work.

thanks!-

-lance

 _______________________________________________
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

References: 
 >Automated editing of binding names in nibs (From: Jon Hendry <email@hidden>)

  • Prev by Date: Automated editing of binding names in nibs
  • Next by Date: Re: SPAM-LOW: Automated editing of binding names in nibs
  • Previous by thread: Automated editing of binding names in nibs
  • Next by thread: Re: SPAM-LOW: Automated editing of binding names in nibs
  • Index(es):
    • Date
    • Thread