Is automatically scaling NSImage in cell?
Is automatically scaling NSImage in cell?
- Subject: Is automatically scaling NSImage in cell?
- From: Marc Monguio <email@hidden>
- Date: Wed, 29 Mar 2006 16:30:38 +0200
I have an NSOutlineView that uses custom NSActionCells for it's rows.
I'm have two methods that draw the same NSImage but in different
positions of the cell. No matter what I do but they are drawn in
different sizes. The function I'm using to write is:
[myImage drawAtPoint:drawingPoint
fromRect:NSZeroRect
operation:NSCompositeSourceOver
fraction:1.0];
Apple's documentation says "The image is rotated and scaled as
needed". Does this mean according to my parent window/view/cell? If
that's the case, why does the scaling change if I'm drawing in the
same object?
Moreover, every time I using the NSImage I'm allocating it again to
ensure all its properties are always the same.
NSImage *myImage = [[NSImage alloc]
initWithContentsOfFile:iconPathname];
regards,
Marc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden