Hi, I am trying to display an Image whose background is transparent as a buttoncell. Then the application background of my app or the desktop is visible and when I clicked on it, it focuses to the visible app.
Why it is so happening. Code goes like this. Subclassed the NSButtonCell and tried to associate my Buttoncell from IB. mImage = [NSImage imageNamed:@"TransparentImage"]; - (void)drawWithFrame:(NSRect)bounds inView:(NSView *)controlView { NSRect imageRect = bounds;//[self imageRectForBounds:bounds]; if (mImage != nil) { [mImage setFlipped:[controlView isFlipped]]; [mImage drawInRect:imageRect fromRect:NSZeroRect operation: NSCompositeSourceIn fraction:1.0]; } } What am I missing here. Kindly help me in this regards. Best regards Mustafa Shaik _______________________________________________ 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