Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using Quartz to draw in a Custom Column




Hi


I have created a custom column and I am trying to use Quartz to do the drawing.


I have created a context from the current port and I understand about the co-ord issues between Q and QD. However I am unable to get my coord transformation to work correctly.

The port appears to be that of the column, so the context's x co-ord matches the columns' (everything is aligned correctly on the left and right). However the y coords appear too low (in keeping with the coord mismatch having the origin on the bottom left rather than top left) and the drawing starts from the bottom and proceeds upwards.

My transformation uses the height of the port to push the y coord up but it doesn't get it pushed far enough, on opening the custom column 'cells' are two cells below where they should be.

When I open a container the custom cells progress up the screen and out of the top of the databrowser view.

All suggesting the origin needs to be flipped, but I am unclear on to proceed.

Regards

Aidan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.