• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Is automatically scaling NSImage in cell?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: Dragging promised files to finder behaviour question
  • Next by Date: Re: Round Rect
  • Previous by thread: Re: Hanging Indentation in NSTextField
  • Next by thread: Bug in CoreData w/ @count?
  • Index(es):
    • Date
    • Thread