Discussion:
About the replacement of NSPrintPagesPerSheet
fan Zheng
2011-09-14 03:38:55 UTC
Permalink
Hi, All:

I am a new comer here of the mail list. And I came here for finding some
helps about Mac Print Panel.
The issue is:
I am developing a customized print panel of Mac OS, which is actually a
NSPrintPanel, now I want to be responsible to refresh the preview follow the
change happens in Layout->"Pages per Sheet". What should I register in the
key value path of preview? NSPrintPagesPerSheet seems to be the correct
choise, but now it was deprcated, and no according replacement.

Is there anyone knows the solution on this issue?

Thanks so much!
fan Zheng
2011-09-14 03:42:28 UTC
Permalink
Hi, All:

I am a new comer here of the mail list. And I came here for finding some
helps about Mac Print Panel.
The issue is:
I am developing a customized print panel of Mac OS, which is actually a
NSPrintPanel, now I want to be responsible to refresh the preview follow the
change happens in Layout->"Pages per Sheet". What should I register in the
key value path of preview? NSPrintPagesPerSheet seems to be the correct
choise, but now it was deprcated, and no according replacement.

Is there anyone knows the solution on this issue?

Thanks so much!
Kyle Sluder
2011-09-14 03:45:50 UTC
Permalink
Post by fan Zheng
I am a new comer here of the mail list. And I came here for finding some
helps about Mac Print Panel.
I am developing a customized print panel of Mac OS, which is actually a
NSPrintPanel, now I want to be responsible to refresh the preview follow the
change happens in Layout->"Pages per Sheet". What should I register in the
key value path of preview? NSPrintPagesPerSheet seems to be the correct
choise, but now it was deprcated, and no according replacement.
Is there anyone knows the solution on this issue?
Look at NSPrintPagesAcross and NSPrintPagesDown.

--Kyle Sluder
fan Zheng
2011-09-14 03:57:19 UTC
Permalink
Hi, Kyle:

Thanks for helping!

But I have tried those 2 keys you mentioned. I just can not catch the
refresh invoke (drawRect, knownPageRange.... anyone) in my view for printing
after changing the "Pages per Sheet"...

So, is there any special setting for the panel or print info?
Post by Kyle Sluder
Post by fan Zheng
I am a new comer here of the mail list. And I came here for finding some
helps about Mac Print Panel.
I am developing a customized print panel of Mac OS, which is actually a
NSPrintPanel, now I want to be responsible to refresh the preview follow
the
Post by fan Zheng
change happens in Layout->"Pages per Sheet". What should I register in
the
Post by fan Zheng
key value path of preview? NSPrintPagesPerSheet seems to be the correct
choise, but now it was deprcated, and no according replacement.
Is there anyone knows the solution on this issue?
Look at NSPrintPagesAcross and NSPrintPagesDown.
--Kyle Sluder
Loading...