Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
use_find_replace_with_compositions [2011/06/23 17:33]
gds
use_find_replace_with_compositions [2013/08/22 21:09] (current)
Line 3: Line 3:
 The Quartz Composer UI does not give you any kind of find/​replace functionality. If you're simply looking to make simple text-based modifications to your composition,​ and you're willing to dive into %%XML%% syntax, there is an alternative. The Quartz Composer UI does not give you any kind of find/​replace functionality. If you're simply looking to make simple text-based modifications to your composition,​ and you're willing to dive into %%XML%% syntax, there is an alternative.
  
-Quartz Composer uses binary-encoded plists to store compositions (what you'​d ​call a composition file). The fact that each composition is stored in binary format makes it impossible to edit the file with a text editor. To get around that, open the composition using the "​Property List Editor.app",​ which is installed along with the Xcode developer tools. The Property List Editor understands plists in both binary and %%XML%% format, and when you open a composition it'll display the contents correctly:​\\ {{ :​qc:​composition-as-plist.jpg?​nolink&​ |}}+Quartz Composer uses binary-encoded plists to store compositions (what you would call a composition file). The fact that each composition is stored in binary format makes it impossible to edit the file with a text editor. To get around that, open the composition using the "​Property List Editor.app",​ which is installed along with the Xcode developer tools. The Property List Editor understands plists in both binary and %%XML%% format, and when you open a composition it'll display the contents correctly:​\\ {{ :​qc:​composition-as-plist.jpg?​nolink&​ |}}
  
 You can use the Property List Editor app to peek around, but it doesn'​t come with a find/​replace feature. Next, choose the "Save As..." command and re-save the composition in plain %%XML%%:\\ {{ :​qc:​composition-save-as-xml.jpg?​nolink&​ |}} You can use the Property List Editor app to peek around, but it doesn'​t come with a find/​replace feature. Next, choose the "Save As..." command and re-save the composition in plain %%XML%%:\\ {{ :​qc:​composition-save-as-xml.jpg?​nolink&​ |}}
Trace: