Bind Page Setup… to our application controller

For unknown reasons, the NSApplication object will not respond to this method, even though it should implement it.
This commit is contained in:
Allan Odgaard
2013-06-27 23:24:23 +02:00
parent ecede39eeb
commit e28b346d70
3 changed files with 23 additions and 9 deletions

View File

@@ -2568,14 +2568,6 @@
</object>
<int key="connectionID">39</int>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">runPageLayout:</string>
<reference key="source" ref="51167417"/>
<reference key="destination" ref="880655721"/>
</object>
<int key="connectionID">87</int>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">showHelp:</string>
@@ -3824,6 +3816,14 @@
</object>
<int key="connectionID">792</int>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">runPageLayout:</string>
<reference key="source" ref="585298010"/>
<reference key="destination" ref="880655721"/>
</object>
<int key="connectionID">850</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">initialFirstResponder</string>
@@ -6262,7 +6262,7 @@
<reference key="dict.values" ref="0"/>
</object>
<nil key="sourceID"/>
<int key="maxID">846</int>
<int key="maxID">850</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -6279,6 +6279,7 @@
<string>orderFrontFindPanel:</string>
<string>orderFrontGoToLinePanel:</string>
<string>performGoToLine:</string>
<string>runPageLayout:</string>
<string>showBundleEditor:</string>
<string>showBundleItemChooser:</string>
<string>showPreferences:</string>
@@ -6293,6 +6294,7 @@
<string>id</string>
<string>id</string>
<string>id</string>
<string>id</string>
</object>
</object>
<object class="NSMutableDictionary" key="actionInfosByName">
@@ -6304,6 +6306,7 @@
<string>orderFrontFindPanel:</string>
<string>orderFrontGoToLinePanel:</string>
<string>performGoToLine:</string>
<string>runPageLayout:</string>
<string>showBundleEditor:</string>
<string>showBundleItemChooser:</string>
<string>showPreferences:</string>
@@ -6330,6 +6333,10 @@
<string key="name">performGoToLine:</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo">
<string key="name">runPageLayout:</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo">
<string key="name">showBundleEditor:</string>
<string key="candidateClassName">id</string>

View File

@@ -39,6 +39,8 @@ namespace find_tags
- (IBAction)newDocumentAndActivate:(id)sender;
- (IBAction)openDocumentAndActivate:(id)sender;
- (IBAction)runPageLayout:(id)sender;
@end
@interface AppController (Documents)

View File

@@ -496,6 +496,11 @@ BOOL HasDocumentWindow (NSArray* windows)
// = Printing =
// ============
- (IBAction)runPageLayout:(id)sender
{
[[NSPageLayout pageLayout] runModal];
}
- (void)printDocument:(id)sender
{
NSView* webView = [NSApp targetForAction:@selector(print:)];