FROM : Stefan
DATE : Sun Aug 06 17:57:44 2006
Am 06.08.2006 um 17:53 schrieb Shawn Erickson:
>
> On Aug 6, 2006, at 8:41 AM, Stefan wrote:
>
>>
>> Am 05.08.2006 um 12:34 schrieb Stefan:
>>
>>> I created a custom subclass of NSView and instantiated it using IB.
>>>
>>> Somehow, it creates more pages, if I draw more stuff in drawRect:
>>> (NSRect).
>>>
>>> But I failed to top-left align it on a printer's page and resize
>>> it to fill a complete
>>> printer's page.
>>>
>>> Some people proposed several example project from Apple, but none
>>> does
>>> implement this situation: Some draw windows, some don't draw anyway.
>>>
>>> Could someone please explain, what I should do? The main problem
>>> is resizing my
>>> view somehow to fit the printer's page size....
>>
>> Hm, my posts tend to get few answers...
>>
>> Any ideas why? Trivial? Too complex? Hard to understand due to
>> insufficient
>> language skills of mine?
>
> They aren't really clear in what exact problem you are having and
> they provide little context on what you are doing so any one
> answering would be guessing. Try to be specific as possible and
> showing code samples always helps.
Thx, Shawn! I'll read the documents, you mentioned.
I'll try to rephrase: My NSView subclass prints its content
correctly, but does
not get aligned to the top-left corner of the page nor resized to fit
the printer's
page size.
DATE : Sun Aug 06 17:57:44 2006
Am 06.08.2006 um 17:53 schrieb Shawn Erickson:
>
> On Aug 6, 2006, at 8:41 AM, Stefan wrote:
>
>>
>> Am 05.08.2006 um 12:34 schrieb Stefan:
>>
>>> I created a custom subclass of NSView and instantiated it using IB.
>>>
>>> Somehow, it creates more pages, if I draw more stuff in drawRect:
>>> (NSRect).
>>>
>>> But I failed to top-left align it on a printer's page and resize
>>> it to fill a complete
>>> printer's page.
>>>
>>> Some people proposed several example project from Apple, but none
>>> does
>>> implement this situation: Some draw windows, some don't draw anyway.
>>>
>>> Could someone please explain, what I should do? The main problem
>>> is resizing my
>>> view somehow to fit the printer's page size....
>>
>> Hm, my posts tend to get few answers...
>>
>> Any ideas why? Trivial? Too complex? Hard to understand due to
>> insufficient
>> language skills of mine?
>
> They aren't really clear in what exact problem you are having and
> they provide little context on what you are doing so any one
> answering would be guessing. Try to be specific as possible and
> showing code samples always helps.
Thx, Shawn! I'll read the documents, you mentioned.
I'll try to rephrase: My NSView subclass prints its content
correctly, but does
not get aligned to the top-left corner of the page nor resized to fit
the printer's
page size.
| Related mails | Author | Date |
|---|---|---|
| Stefan | Aug 5, 12:34 | |
| Stefan | Aug 6, 17:41 | |
| Shawn Erickson | Aug 6, 17:53 | |
| Stefan | Aug 6, 17:57 | |
| Stefan | Aug 6, 18:09 | |
| Todd Ransom | Aug 6, 18:36 | |
| Stefan | Aug 6, 18:43 | |
| Stefan | Aug 6, 23:19 |






Cocoa mail archive

