[MacRuby-devel] Warnings from print operation

Laurent Sansonetti lsansonetti at apple.com
Mon Aug 16 20:30:57 PDT 2010


Hi Robert,

Is the project itself (without the product files) 1.7MB? That's quite big for a sample project, but maybe we can reduce its length.

In any case, feel free to post it somewhere or e-mail it to me directly :)

As for your bug, did you try building your main project for something higher than 10.5?

Laurent

On Aug 16, 2010, at 8:09 PM, Robert Rice wrote:

> Hi Laurent:
> 
> I created an abbreviated version of my project. Unfortunately it didn't reproduce my printing problem but you may want to consider using it for sample code. How would I send it to you? ( 1.7 MB )
> 
> Thanks,
> Bob Rice
> 
> 
> On Aug 15, 2010, at 10:51 PM, Laurent Sansonetti wrote:
> 
>> Could you show your source code? Just from what you pasted I would assume you're using deprecated APIs.
>> 
>> Laurent
>> 
>> On Aug 15, 2010, at 3:19 PM, Robert Rice wrote:
>> 
>>> Hi Thibault Martin-Lagardette:
>>> 
>>> Yes, but the deprecated calls are originating from NSView. Printing had stopped working for the views in my application so I tried creating my own PrintOperation and ran it modally for my window instead of routing the print command directly to the view. Then the warnings appeared. Could my project be linked to an old framework or Ruby library?
>>> 
>>> Thanks,
>>> Bob Rice
>>> 
>>> 
>>> On Aug 15, 2010, at 5:24 PM, Thibault Martin-Lagardette wrote:
>>> 
>>>> It looks like you are using deprecated APIs from the printing Framework. These are clearly not ruby errors, but deprecated objective-c calls :-)
>>>> 
>>>> -- 
>>>> Thibault Martin-Lagardette
>>>> 
>>>> 
>>>> 
>>>> On Aug 15, 2010, at 09:44, Robert Rice wrote:
>>>> 
>>>>> Hi Developers:
>>>>> 
>>>>> I get the followings warning from my PrintOperation:
>>>>> 
>>>>> SimpleX_ViewController.print
>>>>> 2010-08-15 12:25:12.609 MacDriverLog-0.7[243:a0f] -[NSView(NSPrinting) beginPrologueBBox:creationDate:createdBy:fonts:forWhom:pages:title:] was deprecated before Mac OS 10.0 and overrides of it are not being invoked anymore, starting in Mac OS 10.5.
>>>>> 2010-08-15 12:25:12.610 MacDriverLog-0.7[243:a0f] -[NSView(NSPrinting) endHeaderComments] was deprecated before Mac OS 10.0 and overrides of it are not being invoked anymore, starting in Mac OS 10.5.
>>>>> 2010-08-15 12:25:12.612 MacDriverLog-0.7[243:a0f] -[NSView(NSPrinting) endPrologue] was deprecated before Mac OS 10.0 and overrides of it are not being invoked anymore, starting in Mac OS 10.5.
>>>>> 2010-08-15 12:25:12.613 MacDriverLog-0.7[243:a0f] -[NSView(NSPrinting) beginSetup] was deprecated before Mac OS 10.0 and overrides of it are not being invoked anymore, starting in Mac OS 10.5.
>>>>> 2010-08-15 12:25:12.614 MacDriverLog-0.7[243:a0f] -[NSView(NSPrinting) endSetup] was deprecated before Mac OS 10.0 and overrides of it are not being invoked anymore, starting in Mac OS 10.5.
>>>>> 2010-08-15 12:25:12.615 MacDriverLog-0.7[243:a0f] -[NSView(NSPrinting) beginPage:label:bBox:fonts:] was deprecated before Mac OS 10.0 and overrides of it are not being invoked anymore, starting in Mac OS 10.5.
>>>>> 2010-08-15 12:25:12.615 MacDriverLog-0.7[243:a0f] -[NSView(NSPrinting) beginPageSetupRect:placement:] was deprecated before Mac OS 10.0 and overrides of it are not being invoked anymore, starting in Mac OS 10.5.
>>>>> 2010-08-15 12:25:12.616 MacDriverLog-0.7[243:a0f] -[NSView(NSPrinting) addToPageSetup] was deprecated before Mac OS 10.0 and overrides of it are not being invoked anymore, starting in Mac OS 10.5.
>>>>> 2010-08-15 12:25:12.617 MacDriverLog-0.7[243:a0f] -[NSView(NSPrinting) endPageSetup] was deprecated before Mac OS 10.0 and overrides of it are not being invoked anymore, starting in Mac OS 10.5.
>>>>> 2010-08-15 12:25:12.617 MacDriverLog-0.7[243:a0f] -[NSView(NSPrinting) beginTrailer] was deprecated before Mac OS 10.0 and overrides of it are not being invoked anymore, starting in Mac OS 10.5.
>>>>> 2010-08-15 12:25:12.618 MacDriverLog-0.7[243:a0f] -[NSView(NSPrinting) endTrailer] was deprecated before Mac OS 10.0 and overrides of it are not being invoked anymore, starting in Mac OS 10.5.
>>>>> 
>>>>> Looks like I may need to update something. Would this be a framework or a Ruby library? How would I update my system?
>>>>> 
>>>>> Thanks,
>>>>> Bob Rice
>>>>> 
>>>>> _______________________________________________
>>>>> MacRuby-devel mailing list
>>>>> MacRuby-devel at lists.macosforge.org
>>>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>>> 
>>>> _______________________________________________
>>>> MacRuby-devel mailing list
>>>> MacRuby-devel at lists.macosforge.org
>>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>> 
>>> _______________________________________________
>>> MacRuby-devel mailing list
>>> MacRuby-devel at lists.macosforge.org
>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>> 
>> _______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> 
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20100816/5cd8c499/attachment-0001.html>


More information about the MacRuby-devel mailing list