• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Crash with NSPrintOperation ?!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash with NSPrintOperation ?!


  • Subject: Re: Crash with NSPrintOperation ?!
  • From: Guillaume Rager <email@hidden>
  • Date: Thu, 29 Jul 2004 14:37:21 +0200
  • Organization: GumiTech

On Wed, 28 Jul 2004 16:50:49 +0200, Steven Kramer wrote:
> I've experienced the same but now have a setup that works. I think I
> worked around a WebView bug and there definitely was a bug of my own
> involved too ;-) Can you post some code?

Of course,

NSPrintOperation *printOperation = [NSPrintOperation printOperationWithView:[[[cachedWebView mainFrame] frameView] documentView]];
[printOperation setShowPanels:NO];

[[localPrintInfo dictionary] setObject:pathString forKey:@"NSSavePath"];

[localPrintInfo setJobDisposition:NSPrintSaveJob];
[printOperation runOperation];

The cachedWebView object is a standard WebView, but this webview is not into a window, it is just used for the page setup.

Thank you,


>
> Op 28-jul-04 om 9:48 heeft Guillaume Rager het volgende geschreven:
>
>> On Wed, 28 Jul 2004 09:10:40 +0200, Ruben Smits wrote:
>>> I've seen a crash that looks the same in my app. I am using the
>>> Carbon Printing functions, that make use of the same Carbon Printing
>>> Manager as the NSPrintOperation.
>>>
>>> In my situation I see the crash when I'm debugging and stop at a
>>> breakpoint, somewhere in my printloop. I found out this only crashes
>>> in the develop setting. When I switch off the zerolink option, it
>>> does not crash.
>>>
>>> So does your application also crash in a final build?
>>
>> Yes, and it crashes a lot !!! If i replace webview with another view
>> there is no problem, so i guess there is a problem with the webview
>> or how i use them (but if there is a problem after alloc, init,
>> loadURL thats quite weird...). Well i'm still looking for a
>> solution...
>>
>> Regards,
>>
>> Guillaume
>>
>> -----
>> GUMITECH - R&D Unit - Niort (France)
>> http://www.gumitech.com
>>
>> "Chaud cocoa, chaud chocolat !!!"
>> _______________________________________________
>> cocoa-dev mailing list | email@hidden
>> Help/Unsubscribe/Archives:
>> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>> Do not post admin requests to the list. They will be ignored.
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
>
>
Guillaume

-----
GUMITECH - R&D Unit - Niort (France)
http://www.gumitech.com

"Chaud cocoa, chaud chocolat !!!"
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Crash with NSPrintOperation ?!
      • From: Steven Kramer <email@hidden>
References: 
 >Re: Crash with NSPrintOperation ?! (From: Ruben Smits <email@hidden>)
 >Re: Crash with NSPrintOperation ?! (From: Guillaume Rager <email@hidden>)
 >Re: Crash with NSPrintOperation ?! (From: Steven Kramer <email@hidden>)

  • Prev by Date: Re: What happens if I use 10.3 functions on 10.2?
  • Next by Date: Bindings NSArrayController/NSUserDefaultsController nightmare
  • Previous by thread: Re: Crash with NSPrintOperation ?!
  • Next by thread: Re: Crash with NSPrintOperation ?!
  • Index(es):
    • Date
    • Thread