Re: Fake NSMenu-like view
Re: Fake NSMenu-like view
- Subject: Re: Fake NSMenu-like view
- From: Camillo Lugaresi <email@hidden>
- Date: Wed, 1 Feb 2006 11:09:41 +0100
On 01/feb/06, at 02:20, John Stiles wrote:
On Jan 31, 2006, at 4:51 PM, Camillo Lugaresi wrote:
On 31/gen/06, at 23:49, John Stiles wrote:
Prior to HITheme APIs, there was the Appearance Manager, which
had a similar mission--allow developers to render the Aqua
controls--but existed all the way back OS 8 (and I think you
could install it onto 7.6 as an extension, as well...?).
I think it has some limitations in the OS X world--e.g. there are
controls which it can't render--but it might be worth
investigating for the ultimate in compatibility.
The biggest problem of the old Appearance Manager APIs is that
they use QuickDraw for drawing, so you need to have a QD port
around. This is not a huge problem for Carbon, but in Cocoa it
would force you to use an NSQuickDrawView, unless there is another
method of getting a QD port.
I believe you could do [myWindow windowRef] and then GetWindowPort,
but I haven't tested this.
Good idea. I tried SetPortWindowPort([[self window] windowRef]), and
it works fine (after adjusting the coordinates, of course). Now it's
very easy to write alternate drawing methods that use the old
Appearance APIs, which is great if you need 10.2 compatibility.
Camillo
_______________________________________________
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