Re: printing black

2019-01-22 Thread Jeremy Hughes
> On 22 Jan 2019, at 18:23, Alastair Houghton > wrote: > > There’s often a printer setting on users’ printers to tell them to use (just) > black ink. This also shows up in Cocoa Print dialogs under “Printer features” or as a “Greyscale” checkbox. I have it turned on by default. Jeremy

Re: printing black

2019-01-22 Thread Alastair Houghton
On 22 Jan 2019, at 08:16, Georg Seifert wrote: > > Hi > > I have a app that can print black shapes (using normal cocoa view based > printing). A lot users complain that the printouts are not really black (the > printouts are rastered, so the color sync tries to sim

Re: printing black

2019-01-22 Thread Richard Charles
> On Jan 22, 2019, at 1:16 AM, Georg Seifert wrote: > > Hi > > I have a app that can print black shapes (using normal cocoa view based > printing). A lot users complain that the printouts are not really black (the > printouts are rastered, so the color sync tries to

printing black

2019-01-22 Thread Georg Seifert
Hi I have a app that can print black shapes (using normal cocoa view based printing). A lot users complain that the printouts are not really black (the printouts are rastered, so the color sync tries to simulate a CMJK black but even thou that it is black already). We played around

Re: 10.13 printing problem

2017-12-19 Thread Jeremy Hughes
> On 19 Dec 2017, at 18:03, Jeremy Hughes <moon.rab...@virginmedia.com> wrote: > > I have a problem printing an autolayout view in 10.13.2, and I’m wondering if > there is something wrong with my code or if Apple broke something in 10.13 or > a more recent update. > &

10.13 printing problem

2017-12-19 Thread Jeremy Hughes
I have a problem printing an autolayout view in 10.13.2, and I’m wondering if there is something wrong with my code or if Apple broke something in 10.13 or a more recent update. I’m using the same view class for printing and screen, but I have a separate view object for printing. I’m

Re: Printing in Swift

2017-03-23 Thread corbin dunn
> On Mar 21, 2017, at 7:45 AM, David Delmonte <ddelmo...@mac.com> wrote: > > Hello Group. > > I have an NSView-based app (i.e. not document-based), and I’d like to bolt on > a printing subsystem. I can get NSViews in my main controller to print ok. > However, I

Printing in Swift

2017-03-21 Thread David Delmonte
Hello Group. I have an NSView-based app (i.e. not document-based), and I’d like to bolt on a printing subsystem. I can get NSViews in my main controller to print ok. However, I want to have a special view constructed just for printing. The view should not show in the app’s window. I cannot

Re: Printing questions

2017-03-13 Thread Jonathan Mitchell
t at all on GitHub. For NSDocument pdfPrintOperation The docs say : Important This property does not copy the document’s printInfo to the PDF printing operation object. Your app should maintain a separate NSPrintInfo instance specifically for creating PDFs and assign it to the printInfo property

Re: Printing questions

2017-03-12 Thread Daryle Walker
Sent from my iPhone > On Mar 12, 2017, at 5:18 AM, Daryle Walker wrote: > > I hope it’s a nice first try, but I have some concerns. > > 1. I also added an “Export as PDF…” menu item, which uses the save-as-PDF > default action. I guess it calls my code, but the docs for >

Printing questions

2017-03-12 Thread Daryle Walker
I like composing controls and such over coming up with new views. This frustrates me with printing, though, since it’s based on making a view, and making sure that is page-cuttable. I made RTF-export for my app in the first place because I thought there was an easy conversion to printing

Printing in a Mac app with multiple philosophies

2017-03-11 Thread Daryle Walker
There are two IBActions for printing in a Mac app, “print:” and “printDocument:”. The Xcode project samples pick one of those actions to use based on if you requested a document-based app or not. But what are you supposed to do in a mixed-app, one with both NSDocument subclasses and printable

Printing NSCollectionView

2016-11-08 Thread Steve Mills
I'm trying to create a temporary NSCollectionView for printing (this code is replacing old IKImageBrowserView printing code). I'm connecting it to the same dataSource as my normal document's collection view, and binding the NSContentBinding to the same array controller's arrangedObjects

Crash in printing

2015-07-30 Thread John Brownie
One of my users has reported a crash in printing, and I don't really know what could be triggering it. This is the error: Exception Type:EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x00f8 VM Regions Near 0xf8: -- __TEXT

Printing onto custom paper (filling in forms)

2014-08-28 Thread Ben
these sheets. However, I'm getting lost in the printing system trying to figure out what steps I need to take to get this working. I don't understand how to go from the physical paper size (say 80mm wide, 150mm tall) to the paper size Cocoa wants in points. Is there a method that gives

Re: Printing onto custom paper (filling in forms)

2014-08-28 Thread Keary Suska
and dimensions of the boxes to fill in, I should be able to draw a view that prints onto these sheets. However, I'm getting lost in the printing system trying to figure out what steps I need to take to get this working. I don't understand how to go from the physical paper size (say 80mm wide, 150mm

Re: Printing onto custom paper (filling in forms)

2014-08-28 Thread Ben
in. Given that I know the dimensions of the paper and the locations and dimensions of the boxes to fill in, I should be able to draw a view that prints onto these sheets. However, I'm getting lost in the printing system trying to figure out what steps I need to take to get this working. I don't

Re: Printing onto custom paper (filling in forms)

2014-08-28 Thread Keary Suska
. They've got a custom paper size with a series of boxes to be filled in. Given that I know the dimensions of the paper and the locations and dimensions of the boxes to fill in, I should be able to draw a view that prints onto these sheets. However, I'm getting lost in the printing system

Mavericks Printing and inverted NSScrollView NSClipView NSTableView presentation

2013-10-27 Thread John Bishop
in a window, where they have the correct appearance (thus, their orientation - and their flipped status - derived from their nibs, seems correct). The incorrect output happens ONLY when printing and ONLY when running in Mavericks. The same binary produces correct output in 10.6, 10.7 and 10.8

Re: Mavericks Printing and inverted NSScrollView NSClipView NSTableView presentation

2013-10-27 Thread Gary L. Wade
What I've done when needing such a mission-critical response from Apple is submit a tech support incident. This will get you a faster response and more than a note saying your bug is a duplicate. Reference your bug number. I'm not sure about the policy, but I think it's credited back to you if

Printing Problem

2013-07-28 Thread Peter Hudson
All I have assembled several pages of text as RTF in an offscreen NSTextView - outputTextView in the code below. As the text was assembled in the view, I have marked the end of each page with a \page symbol in the RTF. As I have added each piece of text into the view I have determined how

Re: Strange Problem Printing Multiple NSTextViews

2013-02-06 Thread Keary Suska
be more expected). More clearly, the textStorage, layoutManager, and textContainer properties of NSTextView are set to nil when the NSTextStorage is deallocated. Anyway, keeping the NSTextStorage objects around for the printing process solved the issue. I hope someone else may benefit from my

Re: Strange Problem Printing Multiple NSTextViews

2013-02-06 Thread Kyle Sluder
On Wed, Feb 6, 2013, at 09:41 AM, Keary Suska wrote: The issue is in the above lines, where I release the NSTextStorage. I was assuming that the NSTextView would retain the text storage, which certainly must be the case in certain situations, but clearly isn't the case when one is constructing

Strange Problem Printing Multiple NSTextViews

2013-02-05 Thread Keary Suska
I have a custom view on which I place multiple NSTextViews, but when printed only the *content* last NSTextView placed actually shows up. That is, to make sure I am placing view appropriately my NSTextView subclass draws a box around its bounds. The box shows up, but no text inside even though

Re: Printing a view + landscape printing

2013-01-22 Thread Jean Suisse
cocoa-...@esoteritech.com wrote: On Jan 21, 2013, at 8:17 AM, Jean Suisse wrote: I have a non-document based application to which I would like to add printing support. The main window (the one in the .xib created by default by Xcode) contains a split view. Currently, when printing, I

Re: Printing a view + landscape printing

2013-01-22 Thread Graham Cox
need to be especially aware of printing unless you have some special requirements such as headers, footers, or alternate formatting. You shouldn't need to examine print info settings to adjust the view's scale - the print system adjusts the coordinate system of the context it manages

Re: Printing a view + landscape printing

2013-01-22 Thread Jean Suisse
printing system feature. It is. Indeed it is. Thank you so much for this valuable piece of information. Here's the code that made it work: NSPrintInfo* sharedPrintInfo = [NSPrintInfo sharedPrintInfo]; [sharedPrintInfo setHorizontalPagination:NSFitPagination

Re: Printing a view + landscape printing

2013-01-22 Thread Kyle Sluder
On Tue, Jan 22, 2013, at 02:20 AM, Jean Suisse wrote: Now, the result fits one page, in landscape mode. However, the aspect/ratio of the view remains the same as displayed on screen. How can I change the size (bounds) of the view and its subview but for printing only ? I could stretch

Printing a view + landscape printing

2013-01-21 Thread Jean Suisse
Dear All, I have a non-document based application to which I would like to add printing support. The main window (the one in the .xib created by default by Xcode) contains a split view. Currently, when printing, I get only the left pane of the split view (at best) or the control that has

Re: Printing a view + landscape printing

2013-01-21 Thread Jean Suisse
Answering a part of my question: The menu item for printing needs to be re-wired to target the app delegate rather than the first responder. Now, I need to fix the page orientation and determine the size in points for the rendering. Any ideas ? On 21 janv. 2013, at 16:17, Jean Suisse

Re: Printing a view + landscape printing

2013-01-21 Thread Keary Suska
On Jan 21, 2013, at 8:17 AM, Jean Suisse wrote: I have a non-document based application to which I would like to add printing support. The main window (the one in the .xib created by default by Xcode) contains a split view. Currently, when printing, I get only the left pane of the split

Re: Printing layer-based view

2013-01-08 Thread Graham Cox
Animation rendering model that are relevant for printing in your case. Our implementation is part of our public frameworks: https://github.com/omnigroup/OmniGroup/blob/master/Frameworks/OmniQuartz/CALayer-OQExtensions.m#L583 --Kyle Sluder

Re: Printing layer-based view

2013-01-08 Thread Kyle Sluder
On Jan 8, 2013, at 2:19 AM, Graham Cox graham@bigpond.com wrote: Wow, thanks that looks like a lot of work (for you, or someone...) But I find I can just call -renderInContext on the view's root layer and I get what I need, apparently. Is there something I'm missing? That'll

Re: Printing layer-based view

2013-01-08 Thread Graham Cox
, such as CATextLayer, do pixelate, which is why I was asking about a vector solution for these. One drawback I have found is that if the view is zoomed the print operation paginates the zoomed area, which can generate hundreds of pages - this will need to be temporarily set back to 100% during printing

Re: Printing layer-based view

2013-01-08 Thread David Duncan
of pages - this will need to be temporarily set back to 100% during printing, but that is a relatively minor issue. The practical reality of -renderInContext: is that its unlikely to do exactly what you want. Its really only useful for capturing content that you plan to immediately redisplay

Printing layer-based view

2013-01-07 Thread Graham Cox
Hi all, How can I print a view whose content is solely based on CALayers? When I attempt it, my view's -drawRect: method is called instead, which does not render the layer-based content. --Graham ___ Cocoa-dev mailing list

Re: Printing layer-based view

2013-01-07 Thread Kyle Sluder
of the Core Animation rendering model that are relevant for printing in your case. Our implementation is part of our public frameworks: https://github.com/omnigroup/OmniGroup/blob/master/Frameworks/OmniQuartz/CALayer-OQExtensions.m#L583 --Kyle Sluder ___ Cocoa

Crash when printing (including printing to PDF)

2012-12-06 Thread John Brownie
I am working on implementing printing, and have it working to the point where the preview in the print sheet works. However, I get a crash if I then go on to print or go to PDF (Open in Preview, Save as PDF). In the print case, I get this crash: 2012-12-06 18:40:01.757 MyApp[43204:403

Re: Crash when printing (including printing to PDF)

2012-12-06 Thread Fritz Anderson
On 6 Dec 2012, at 2:47 AM, John Brownie john_brow...@sil.org wrote: I am working on implementing printing, and have it working to the point where the preview in the print sheet works. However, I get a crash if I then go on to print or go to PDF (Open in Preview, Save as PDF). In the print

Re: Crash when printing (including printing to PDF)

2012-12-06 Thread John Brownie
Fritz Anderson wrote: On 6 Dec 2012, at 2:47 AM, John Brownie john_brow...@sil.org wrote: I am working on implementing printing, and have it working to the point where the preview in the print sheet works. However, I get a crash if I then go on to print or go to PDF (Open in Preview, Save

Re: printing arrays

2012-11-08 Thread Gerriet M. Denkmann
On 3 Nov 2012, at 22:42, Kyle Sluder k...@ksluder.com wrote: On Nov 2, 2012, at 10:18 PM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: On 3 Nov 2012, at 00:35, Kyle Sluder k...@ksluder.com wrote: If this is just for debugging purposes, you could swizzle -[NSArray description] and

Re: printing arrays

2012-11-03 Thread Kyle Sluder
On Nov 2, 2012, at 10:18 PM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: On 3 Nov 2012, at 00:35, Kyle Sluder k...@ksluder.com wrote: If this is just for debugging purposes, you could swizzle -[NSArray description] and -[NSDictionary description]. I tried a Category for NSArray

Re: printing arrays

2012-11-03 Thread Gerriet M. Denkmann
On 3 Nov 2012, at 12:47, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Nov 2, 2012, at 22:18 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote: Is there a way to make the first NSLog work? I seem to remember that it calls something like debuggingDescription, which, if not

Re: printing arrays

2012-11-03 Thread Gerriet M. Denkmann
On 3 Nov 2012, at 22:42, Kyle Sluder k...@ksluder.com wrote: On Nov 2, 2012, at 10:18 PM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: On 3 Nov 2012, at 00:35, Kyle Sluder k...@ksluder.com wrote: If this is just for debugging purposes, you could swizzle -[NSArray description] and

printing arrays

2012-11-02 Thread Gerriet M. Denkmann
This code: NSString *key = @กุญแจ; NSString *value = @คุณค่า; NSArray *array = @[ key, value ]; NSLog(@ Two nice strings: %@ %@, key, value); NSLog(@ Bad Array: %@, array); prints: 2012-...] Two nice strings: กุญแจ คุณค่า 2012-...] Bad Array: ( \U0e01\U0e38\U0e0d\U0e41\U0e08,

Re: printing arrays

2012-11-02 Thread Kyle Sluder
On Fri, Nov 2, 2012, at 10:02 AM, Gerriet M. Denkmann wrote: This code: NSString *key = @กุญแจ; NSString *value = @คุณค่า; NSArray *array = @[ key, value ]; NSLog(@ Two nice strings: %@ %@, key, value); NSLog(@ Bad Array: %@, array); prints: 2012-...] Two nice strings: กุญแจ คุณค่า

Re: printing arrays

2012-11-02 Thread Greg Guerin
Gerriet M. Denkmann wrote: 2012-...] Bad Array: ( \U0e01\U0e38\U0e0d\U0e41\U0e08, \U0e04\U0e38\U0e13\U0e04\U0e48\U0e32 ) For a very long time, the -description method of NSArray (and other collection classes) has produced the old-style ASCII plist format. Since that format has

Re: printing arrays

2012-11-02 Thread Gerriet M. Denkmann
On 3 Nov 2012, at 00:35, Kyle Sluder k...@ksluder.com wrote: On Fri, Nov 2, 2012, at 10:02 AM, Gerriet M. Denkmann wrote: This code: NSString *key = @กุญแจ; NSString *value = @คุณค่า; NSArray *array = @[ key, value ]; NSLog(@ Two nice strings: %@ %@, key, value); NSLog(@ Bad Array: %@,

Re: printing arrays

2012-11-02 Thread Quincey Morris
On Nov 2, 2012, at 22:18 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote: Is there a way to make the first NSLog work? I seem to remember that it calls something like debuggingDescription, which, if not overridden calls description. I have no experience with swizzling. Aren't you making

printing Utf8

2012-10-31 Thread Gerriet M. Denkmann
I print strings like: NSString *s = @ร่วมรส; fprintf(stderr, %s\n, [ s UTF8String]); and usually it just works. But sometimes it does not and I get garbage like: ร่ว\340\270\241รส Converting these numbers to hex one gets: 0xe0 0xb8 0xa1 which is the Utf8-code for THAI CHARACTER

Re: printing Utf8

2012-10-31 Thread Ken Thomases
On Oct 31, 2012, at 9:41 AM, Gerriet M. Denkmann wrote: I print strings like: NSString *s = @ร่วมรส; fprintf(stderr, %s\n, [ s UTF8String]); and usually it just works. But sometimes it does not and I get garbage like: ร่ว\340\270\241รส Converting these numbers to hex one

Re: printing Utf8

2012-10-31 Thread lbland
hi- On Oct 31, 2012, at 10:41 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: NSString *s = @ร่วมรส; Not supported. The compiler should be issuing a warning. You need to escape the characters using a UTF encoding. thanks!- -lance ___

Re: printing Utf8

2012-10-31 Thread Ken Thomases
On Oct 31, 2012, at 10:17 AM, lbland wrote: On Oct 31, 2012, at 10:41 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: NSString *s = @ร่วมรส; Not supported. The compiler should be issuing a warning. You need to escape the characters using a UTF encoding. That's not true. The

Re: printing Utf8

2012-10-31 Thread Vincent Habchi
Le 31 oct. 2012 à 16:17, lbland lbl...@vvi.com a écrit : hi- On Oct 31, 2012, at 10:41 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: NSString *s = @ร่วมรส; Not supported. The compiler should be issuing a warning. You need to escape the characters using a UTF encoding. I

Re: printing Utf8

2012-10-31 Thread Gerriet M. Denkmann
() also in this Xcode output-pane. Printing about 5000 chars (= 15000 Utf-8 bytes) there are 8 such glitches. If somebody cuts my output into 1024 byte chunks, there will be 15 of these. If there is a 2 in 3 chance of getting the border just wrong (cutting a 3-byte Utf-char into 2 invalid parts

Re: printing Utf8

2012-10-31 Thread Jean-Daniel Dupas
Le 31 oct. 2012 à 16:31, Ken Thomases k...@codeweavers.com a écrit : On Oct 31, 2012, at 10:17 AM, lbland wrote: On Oct 31, 2012, at 10:41 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: NSString *s = @ร่วมรส; Not supported. The compiler should be issuing a warning. You need

Re: printing Utf8

2012-10-31 Thread Gerriet M. Denkmann
On 31 Oct 2012, at 22:15, Ken Thomases k...@codeweavers.com wrote: On Oct 31, 2012, at 9:41 AM, Gerriet M. Denkmann wrote: I print strings like: NSString *s = @ร่วมรส; fprintf(stderr, %s\n, [ s UTF8String]); and usually it just works. But sometimes it does not and I get

Re: printing Utf8

2012-10-31 Thread Ken Thomases
On Oct 31, 2012, at 2:42 PM, Gerriet M. Denkmann wrote: When I run this in Xcode for a few times, I get sometimes good output, but sometimes not. Bad output looks like: 2012-11-01 01:56:29.971 Writing[76838:303] strlen 1027

Re: printing Utf8

2012-10-31 Thread Fritz Anderson
I ran into something similar in my own work, but my solution may not fit your needs. printf() won't work reliably for you. My conjecture is that printf buffers its work byte-by-byte, and if an encoded character falls across a buffer boundary, the two parts are output as escaped-decimal,

sending html file to safari for printing

2012-06-06 Thread Amy Gibbs
I've got an app I've written for myself, it's mac core data based. I need to be able to output a printout of some data, it would basically be a table with some images and data. I think the easiest thing to do may be to create an HTML page that can then be opened in Safari. I can manage

Re: sending html file to safari for printing

2012-06-06 Thread Jens Alfke
On Jun 6, 2012, at 9:08 AM, Amy Gibbs wrote: I can manage creating and saving the HTML file, how do I automatically open it up in Safari (or the default browser it doesn't matter) so I can print it out? Tell NSWorkspace to open the file. —Jens

Re: sending html file to safari for printing

2012-06-06 Thread Frédéric Testuz
Le 6 juin 2012 à 18:08, Amy Gibbs a écrit : I've got an app I've written for myself, it's mac core data based. I need to be able to output a printout of some data, it would basically be a table with some images and data. I think the easiest thing to do may be to create an HTML page that

Best Practice for laying out images for printing in a WYSIWYG Mac app?

2012-05-31 Thread Johannes Fahrenkrug
Hi, I'm in the concept phase of a Mac application that should let the user easily select and layout images for printing. It's a document-based app and a document can have multiple pages with lots of pictures in different sizes and rotations on it. The UI would kind of be like the UI of Pages.app

Re: Convert PDF CGContextRef to NSView for hi-res printing

2012-03-09 Thread Gilles Celli
currentContext]; [self renderGraphsInContext:[nsContext graphicsPort]]; If this is in the -drawRect: method that is called during printing, then [NSGraphicsContext currentContext] will be the graphics context that is writing PDF to the print file, and -renderGraphsInContext: can emit vector

Convert PDF CGContextRef to NSView for hi-res printing

2012-03-05 Thread Gilles Celli
Hi, I'm stuck on a problem on how to print high resolution graphs on Mac OS X, by using the wonderful CorePlot (1) framework. I've asked on the Coreplot mailing list but no answer...maybe it's too obvious that I don't see the tree in the forest: My method produces a CGContextRef (with

Re: Convert PDF CGContextRef to NSView for hi-res printing

2012-03-05 Thread Graham Cox
a starting point. Printing is entirely built around PDF, so there is no reason to accept bitmaps, jaggies or any other artefact of rasterization. --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Convert PDF CGContextRef to NSView for hi-res printing

2012-03-05 Thread Wim Lewis
graphicsPort]]; If this is in the -drawRect: method that is called during printing, then [NSGraphicsContext currentContext] will be the graphics context that is writing PDF to the print file, and -renderGraphsInContext: can emit vector output without any extra conversions

Re: Printing an NSDate

2012-01-19 Thread Andreas Grosam
On Jan 19, 2012, at 7:41 AM, Gerriet M. Denkmann wrote: I want to print a date on iOS 5.0.1 ignoring the locale. (this is for logging - not for showing strings to users) I assume that NSDate has no sufficient parameters to control the output. So I tried to use NSDateFormatter. The

Re: Printing an NSDate

2012-01-19 Thread Kyle Sluder
On Jan 18, 2012, at 10:41 PM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: The desired output is something like: NSString *template = @HH:mm:ss EEE dd. MMM zzz; NSString *dateFormat = [ NSDateFormatter dateFormatFromTemplate: template options: 0 locale: nil ]; NSDateFormatter

Re: Printing an NSDate

2012-01-19 Thread Peter Edberg
On Jan 19, 2012, at 2:39 AM, cocoa-dev-requ...@lists.apple.com wrote: Date: Thu, 19 Jan 2012 13:41:54 +0700 From: Gerriet M. Denkmann gerr...@mdenkmann.de Subject: Printing an NSDate To: cocoa-dev@lists.apple.com Message-ID: cd59692a-8452-4d4b-ad12-e49636f8d...@mdenkmann.de Content-Type

Printing an NSDate

2012-01-18 Thread Gerriet M. Denkmann
I want to print a date on iOS 5.0.1 ignoring the locale. (this is for logging - not for showing strings to users) I assume that NSDate has no sufficient parameters to control the output. So I tried to use NSDateFormatter. The desired output is something like: NSString *template = @HH:mm:ss EEE

Printing patterns

2011-12-07 Thread Janusz Bossy
Hi guys, this is my first email to the list. Currently I'm working on an app that has to do with printing and I haven't really had any experience with this. I get the basic concept that print and drawing to screen are the same thing and all was working fine until I wanted to have a striped

Re: Printing multiple images each on a separate page using single NSPrintOperation

2011-11-07 Thread Martin Wierschin
/#documentation/Cocoa/Conceptual/Printing/Concepts/pagination.html#//apple_ref/doc/uid/20001051-BBCHHAHI ~Martin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Printing image represented by multiple tiles using Cocoa

2011-11-04 Thread Rahul Kesharwani
Hi I have a application that prints a image of a page of document on paper. The image is usually tiled and is provided as a set of 4 tiles representing the entire image. Till now this is being done using Carbon printing APIs . The set of functions calls and their order for printing a document

Printing multiple images each on a separate page using single NSPrintOperation

2011-11-04 Thread Rahul Kesharwani
Hi I have a application that intends to print raster image of each page of a document using NSPrintOperation. I am able to create a NSImage of a single page and print it using NSPrintOperation as follows -void printPage: (NSImage)nsImage { NSImageView *nsImageView = [[NSImageView

Re: Printing image represented by multiple tiles using Cocoa

2011-11-04 Thread Ken Thomases
On Oct 23, 2011, at 6:26 AM, Rahul Kesharwani wrote: I have a application that prints a image of a page of document on paper. The image is usually tiled and is provided as a set of 4 tiles representing the entire image. Till now this is being done using Carbon printing APIs . The APIs you

printing and the responder chain

2011-10-04 Thread Torsten Curdt
://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Printing/Concepts/architecture.html#//apple_ref/doc/uid/20001053-BAJCHHJG Printing is generally initiated by the user choosing the Print menu command, which usually sends either a print: or printDocument: message, depending on whether

Re: printing and the responder chain

2011-10-04 Thread Graham Cox
On 04/10/2011, at 9:23 PM, Torsten Curdt wrote: Printing is generally initiated by the user choosing the Print menu command, which usually sends either a print: or printDocument: message, So which is it? You can look at the Print menu item in the MainMenu.xib and see what its action

Re: printing and the responder chain

2011-10-04 Thread Torsten Curdt
view. Reading the documentation from http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Printing/Concepts/architecture.html#//apple_ref/doc/uid/20001053-BAJCHHJG Printing is generally initiated by the user choosing the Print menu command, which usually sends either a print

Re: printing and the responder chain

2011-10-04 Thread Torsten Curdt
In order for your custom view to become first responder, it must also return YES from -acceptsFirstResponder head ... desk Off course! I bet that was it ...but as you said: to avoid surprises I better move the action off the first responder. Thanks, Graham! cheers, Torten but mouse events

Printing exception on Lion

2011-09-07 Thread Andre Masse
Hi, I'm trying to implement printing in my application. I was following Aaron Hillegass book (Cocoa Programming for Mac OS X, chap 27) and while it does print, I got an exception. So, I downloaded the examples on the book's site (http://bignerdranch.com/book/cocoa®_programming_for_mac

Re: Printing exception on Lion

2011-09-07 Thread Buddy Kurz
I have the same problem and am looking forward to hearing a solution. Sounds like the view is trying to mess with the shadow around it's window when there is no window. buddy kurz On Sep 7, 2011, at 5:58 AM, Andre Masse wrote: Hi, I'm trying to implement printing in my application. I

Re: Printing exception on Lion

2011-09-07 Thread Corbin Dunn
On Sep 7, 2011, at 5:58 AM, Andre Masse wrote: Hi, I'm trying to implement printing in my application. I was following Aaron Hillegass book (Cocoa Programming for Mac OS X, chap 27) and while it does print, I got an exception. So, I downloaded the examples on the book's site (http

Re: Printing exception on Lion

2011-09-07 Thread Raleigh Ledet
This is a known problem, but it shouldn't be throwing an exception. It's just logging an error to the console that you can ignore. If it is throwing an actual exception and preventing printing from working, let me know. -raleigh On Sep 7, 2011, at 9:06 AM, Corbin Dunn wrote: On Sep 7

Re: Printing exception on Lion

2011-09-07 Thread Andre Masse
to the console that you can ignore. If it is throwing an actual exception and preventing printing from working, let me know. -raleigh On Sep 7, 2011, at 9:06 AM, Corbin Dunn wrote: On Sep 7, 2011, at 5:58 AM, Andre Masse wrote: Hi, I'm trying to implement printing in my

Re: Printing

2011-08-20 Thread Graham Cox
On 20/08/2011, at 1:33 AM, koko wrote: m_rectForPage = [[NSPrintInfo sharedPrintInfo] imageablePageBounds]; - (NSRect)rectForPage:(int)page { return m_rectForPage; } This is not what -rectForPage: should be returning. Check the documentation.. --Graham

Re: Printing [SOLVED]

2011-08-19 Thread koko
not setting up the printing view correctly? Perhaps you've written the code in a strange dialect of Swahili? --Graham On 19/08/2011, at 10:45 AM, koko wrote: I have view that I use for printing. knowsPageRange is called rectForPage is called BUT drawRect is not called What

Printing

2011-08-18 Thread koko
I have view that I use for printing. knowsPageRange is called rectForPage is called BUT drawRect is not called What in the name of HP am I missing? -koko ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Printing

2011-08-18 Thread Graham Cox
shrugs Show your code. How are we supposed to debug something we can't even see? perhaps -rectForPage: is returning an empty rect? Perhaps you're not setting up the printing view correctly? Perhaps you've written the code in a strange dialect of Swahili? --Graham On 19/08/2011, at 10:45 AM

Re:Problem printing offscreen PDFViews

2011-08-14 Thread Kevin Bracey
Old follow up to help anyone else who might wish to print PDFs. Having just run into the same problem as Waldo. I found the Apple Sample Code: PDFView a good starting point. While it no longer opens in Xcode 4.2 adding PDFImageView to my project worked fine. By changing the load code to use

Re: Printing options

2011-07-30 Thread Eli Bach
, I've written an application that prints out customer orders in nice columnar fashion with a header, columns, prices, total at the bottom, etc., and it does exactly that. Printing is just drawing, it isn't hard. Just draw lines in the places where you want lines, text in the places where you

Re: Printing options

2011-07-21 Thread davelist
On Jul 19, 2011, at 3:25 PM, Amy Gibbs wrote: Hi, I've read everything that says printing is easy...but I'm struggling with it! I have googled, but nothing quite seems to fit my situation, I just want a single page. In my app I have customer orders, and I just want to print out

Re: Printing options

2011-07-21 Thread Matt Neuburg
orders in nice columnar fashion with a header, columns, prices, total at the bottom, etc., and it does exactly that. Printing is just drawing, it isn't hard. Just draw lines in the places where you want lines, text in the places where you want text, etc. m. -- matt neuburg, phd = m...@tidbits.com

Printing options

2011-07-19 Thread Amy Gibbs
Hi, I've read everything that says printing is easy...but I'm struggling with it! I have googled, but nothing quite seems to fit my situation, I just want a single page. In my app I have customer orders, and I just want to print out a copy. I can't work out what the best option would

Re: Help finding documentation about printing

2011-07-11 Thread Christopher Henrich
On Jul 10, 2011, at 12:48 PM, Joel Norvell wrote: Hi Christopher, The documentation set on http://developer.apple.com/devcenter/mac/index.action has Apple's printing giude. The full URL to the printing section is: http://developer.apple.com/library/mac/#documentation/Cocoa

Re: Help finding documentation about printing

2011-07-11 Thread Roland King
On 11-Jul-2011, at 11:05 PM, Christopher Henrich wrote: On Jul 10, 2011, at 12:48 PM, Joel Norvell wrote: Hi Christopher, The documentation set on http://developer.apple.com/devcenter/mac/index.action has Apple's printing giude. The full URL to the printing section is: http

Re: Help finding documentation about printing

2011-07-10 Thread Joel Norvell
Hi Christopher, The documentation set on http://developer.apple.com/devcenter/mac/index.action has Apple's printing giude. The full URL to the printing section is: http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Printing/Printing.html%23//apple_ref/doc/uid/1083i

Help finding documentation about printing

2011-07-09 Thread Christopher Henrich
I am developing a Cocoa application, and I want to implement printing in it. I have found the document Printing Programming Topics for Cocoa. In it is this paragraph: To understand how Cocoa printing works in the context of the Mac OS X printing system as a whole, you should first read Mac OS

Printing graphics plus text

2011-06-11 Thread Scott Steinman
and redrawing its contents for printing. Unfortunately, none of them shows how to print two views containing different contents. Can the offscreen view contain subviews that each know how to draw themselves? Thank you in advance for your help. Unless I run into a problem, I won't respond here so

Re: Printing graphics plus text

2011-06-11 Thread Eli Bach
by instantiating an offscreen instance of that single view and redrawing its contents for printing. Unfortunately, none of them shows how to print two views containing different contents. Can the offscreen view contain subviews that each know how to draw themselves? Thank you

  1   2   3   >