• 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
Re: Transparent Images on Buttons in Jaguar?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Transparent Images on Buttons in Jaguar?


  • Subject: Re: Transparent Images on Buttons in Jaguar?
  • From: Dave Camp <email@hidden>
  • Date: Mon, 7 Jun 2004 16:03:12 -0700

If the button class is busted on Jaguar, you might be able to work around it by subclassing NSButtonCell for that instance and writing your own drawing method that manually draws correctly on OS version < 10.3. On 10.3 and above you would just call the existing superclass method.

Just a thought.

Dave

On Jun 7, 2004, at 3:02 PM, joe pezzillo wrote:

Greetings CocoaDev!

I'm dealing with a problem similar to one that I've found mentioned on the list before ("Re: setHidden: on MacOS 10.2" Date: Thu, 29 Apr 2004 12:53:17 +0200) but that one doesn't seem to have a clear resolution and isn't an exact match for my issue. I don't want the button to be hidden completely, just have a transparent image and be placed on a transparent window (per the Apple round transparent window example). I tried using NSButton's "setTransparent:" method, but as the docs say, it prevents the button from being drawn, and that's not what I'm looking for.

I've got an NSButton with a transparent tiff graphic that works just swell under Panther, but under Jaguar, it's not transparent, or, it's transparent but shows the corduroy background even though it's on a transparent window (the transparent window itself seems to work fine on both Panther and Jaguar).

The button with image is created in IB using a tiff image in my Xcode project that was created in Photoshop.

I've put up some sample images and description on a website for your review, but really I just want to know what I'm doing wrong or if this isn't possible under Jaguar.

Please see:

http://www.thinksimilar.com/cocoa-dev/

for enlarged images showing the difference.

If you can help, please cc me directly on the answer as I only get the Cocoa-dev digests and I'm eager to get this fixed ASAP!

THANK YOU!

Joe
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.



---
You are in a maze of testy little Java VMs, all subtly different.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Transparent Images on Buttons in Jaguar? (From: joe pezzillo <email@hidden>)

  • Prev by Date: Re: NSDictionary design bug (was: Re: Ugly bug in Foundation, beware!)
  • Next by Date: Re: NSDictionary design bug (was: Re: Ugly bug in Foundation, beware!)
  • Previous by thread: Transparent Images on Buttons in Jaguar?
  • Next by thread: Re: Transparent Images on Buttons in Jaguar?
  • Index(es):
    • Date
    • Thread