Hello Graham. So this is what I did, and its drawing ok.
I subclasses the NSConllectionViewItem, in the copyWithzone method I weakly assigned self to its view (custom NSView also), then in the view subclass in the draw method I ask the controller (subclass of NSCollectionViewItem) for its representedObject and the valueForKey:@"avatar", which is the property of the entity. then I calculate the size and position where to draw the image, and I just draw it normally. the result.. full opacity. I still don't understand why when setting it in IB to a NSImageView it will set some opacity ... Gustavo On Jun 11, 2010, at 3:09 PM, Graham Cox wrote: > > On 11/06/2010, at 10:59 PM, Gustavo Pizano wrote: > >> any idea why Im not getting full opacity? > > > Opacity is neither an image nor an NSImageView property, it's applied when > the image is drawn (unless the image itself has some inherent transparency). > There's nothing in the posted code that would affect this, so the problem is > coming from somewhere else. One possibility is the state of the current > context when the NSImageView draws. > > To eliminate the transformer, what happens if you just load the image > straight into the image view? > > (BTW, there's no such class as NSImageWell) > > --Graham > > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com