FROM : Stefan
DATE : Wed Jul 26 23:20:44 2006
Am 26.07.2006 um 01:18 schrieb Chris Hanson:
> On Jul 25, 2006, at 3:07 PM, Stefan wrote:
>
>> Any hints? Some dummy 'hello worl' drawing NSView which really
>> prints available?
>
> The Sketch example in /Developer/Examples/AppKit has some
> demonstrates printing.
Unfortunately, not in there too.
But I found a solution. Instead of creating my NSView subclass in code,
I instanced it in a window and pass a reference using an outlet. Using
this technique, the view instantly started printing something.
Now, my next tast is sizing the NSView. While my NSView instance
performs
sizing nicely based on IB's size setting, my printed NSView gets very
small:
A drawn rectang
DATE : Wed Jul 26 23:20:44 2006
Am 26.07.2006 um 01:18 schrieb Chris Hanson:
> On Jul 25, 2006, at 3:07 PM, Stefan wrote:
>
>> Any hints? Some dummy 'hello worl' drawing NSView which really
>> prints available?
>
> The Sketch example in /Developer/Examples/AppKit has some
> demonstrates printing.
Unfortunately, not in there too.
But I found a solution. Instead of creating my NSView subclass in code,
I instanced it in a window and pass a reference using an outlet. Using
this technique, the view instantly started printing something.
Now, my next tast is sizing the NSView. While my NSView instance
performs
sizing nicely based on IB's size setting, my printed NSView gets very
small:
A drawn rectang
| Related mails | Author | Date |
|---|---|---|
| Stefan | Jul 25, 19:33 | |
| I. Savant | Jul 25, 19:43 | |
| Stefan | Jul 25, 19:50 | |
| I. Savant | Jul 25, 20:02 | |
| Stefan | Jul 26, 00:07 | |
| Chris Hanson | Jul 26, 01:18 | |
| Stefan | Jul 26, 23:20 |






Cocoa mail archive

