Re: NSPageLayout obsolete?

2014-08-19 Thread Ken Thomases
On Aug 19, 2014, at 3:17 AM, Quincey Morris wrote: > Keep in mind that two conditions must be satisfied for a menu item to be > enabled: > > a. There must be an object in the responder chain that implements the > associated action method. > > b. *That object* must return YES from validateUse

Re: NSPageLayout obsolete?

2014-08-19 Thread Quincey Morris
On Aug 19, 2014, at 00:32 , Daryle Walker wrote: > I looked for -runPageLayout: in NSApplication.h, and I couldn’t find it. > That’s why I thought this action may be obsolete and unsupported. > > However… > > There are a lot of methods in the HTML docs for NSApplication. I thought the > provi

Re: NSPageLayout obsolete?

2014-08-19 Thread Daryle Walker
On Aug 18, 2014, at 10:35 PM, Kyle Sluder wrote: > On Aug 18, 2014, at 7:27 PM, Daryle Walker wrote: > >> On Aug 18, 2014, at 1:03 PM, Daryle Walker wrote: >> >>> I then added the same action to the app delegate (using >>> -runModelWithPrintInfo:). Worked fine when a window was open, but tha

Re: NSPageLayout obsolete?

2014-08-18 Thread Kyle Sluder
On Aug 18, 2014, at 7:27 PM, Daryle Walker wrote: > >> On Aug 18, 2014, at 1:03 PM, Daryle Walker wrote: >> >>> On Aug 18, 2014, at 12:30 PM, Kyle Sluder wrote: >>> >>> Before you speculate like this, you should try the alternative. >>> -beginSheet… is a drop-in replacement for -runModal. (J

Re: NSPageLayout obsolete?

2014-08-18 Thread Daryle Walker
On Aug 18, 2014, at 1:03 PM, Daryle Walker wrote: > On Aug 18, 2014, at 12:30 PM, Kyle Sluder wrote: > >> Before you speculate like this, you should try the alternative. -beginSheet… >> is a drop-in replacement for -runModal. (Just use +[NSPrintInfo >> sharedPrintInfo].) > > I added a runPag

Re: NSPageLayout obsolete?

2014-08-18 Thread Daryle Walker
On Aug 18, 2014, at 12:30 PM, Kyle Sluder wrote: >> On Aug 18, 2014, at 9:13 AM, Daryle Walker wrote: >> >>> On Aug 18, 2014, at 8:36 AM, SevenBits wrote: >>> >>> On Monday, August 18, 2014, Daryle Walker >> > wrote: >>> I just read a post on StackOverflow that the “Page Setup…” menu it

Re: NSPageLayout obsolete?

2014-08-18 Thread Kyle Sluder
> On Aug 18, 2014, at 9:13 AM, Daryle Walker wrote: > >> On Aug 18, 2014, at 8:36 AM, SevenBits wrote: >> >> On Monday, August 18, 2014, Daryle Walker > > wrote: >> >>> I just read a post on StackOverflow that the “Page Setup…” menu item is >>> obsolete, especially for non-document apps. I tr

Re: NSPageLayout obsolete?

2014-08-18 Thread Daryle Walker
On Aug 18, 2014, at 8:36 AM, SevenBits wrote: > On Monday, August 18, 2014, Daryle Walker > wrote: > >> I just read a post on StackOverflow that the “Page Setup…” menu item is >> obsolete, especially for non-document apps. I tried a runPageLayout: >> method that just did (void)[[NSPageLayout p

Fwd: NSPageLayout obsolete?

2014-08-18 Thread SevenBits
From: *SevenBits* Date: Monday, August 18, 2014 Subject: NSPageLayout obsolete? To: Daryle Walker On Monday, August 18, 2014, Daryle Walker > wrote: > I just read a post on StackOverflow that the “Page Setup…” menu item is > obsolete, especially for non-document apps. I tried a runP

NSPageLayout obsolete?

2014-08-17 Thread Daryle Walker
I just read a post on StackOverflow that the “Page Setup…” menu item is obsolete, especially for non-document apps. I tried a runPageLayout: method that just did (void)[[NSPageLayout pageLayout] runModal] and nothing happened; not even the menu item became active. Did I mess up, or did Apple g