Re: Translucent black window
Re: Translucent black window
- Subject: Re: Translucent black window
- From: Pascal Pochet <email@hidden>
- Date: Wed, 18 Jan 2006 19:53:59 +0100
Le 17-janv.-06 à 21:39, Andreas Mayer a écrit :
Am 17.01.2006 um 21:17 Uhr schrieb Julien Silland:
Can you be more specific about what I need to change to the
controls in order to have them drawn properly ?
I can't.
The only controls I modified are buttons and sliders. For buttons I
used my AMRollOverButton class and for sliders I had to compensate
for the system behaviour by carefully choosing the size and
positions of the slider's elements. I can only assume that for more
complex controls it will be even harder to get it right.
Indeed, there is a problem subclassing some Cocoa control classes,
e.g. I have filled a bug report regarding NSScroller because
the overwritten
+ (float)scrollerWidth
and
+ (float)scrollerWidthForControlSize:(NSControlSize)controlSize
are never called, looks like they have coded
[NSScroller scrollerWidth]
instead of
[[self class] scrollerWidth]
...
sometimes better start from scratch than subclassing…
Pascal Pochet
email@hidden
----------------------------------
PGP
KeyID: 0x208C5DBF
Fingerprint: 9BFB 245C 5BFE 7F1D 64B7 C473 ABB3 4E83 208C 5DBF
_______________________________________________
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