Re: Apple Aperture-like look & feel
Re: Apple Aperture-like look & feel
- Subject: Re: Apple Aperture-like look & feel
- From: Uli Kusterer <email@hidden>
- Date: Mon, 20 Aug 2012 19:11:59 +0200
On Aug 20, 2012, at 7:03 PM, Uli Kusterer <email@hidden> wrote:
> essentially subclass all the controls and override drawRect: (and mouseDown: where needed) to get our custom graphics in there.
One note: Many controls on the Mac are NSCell-based NSControls, in which case you generally want to override the drawBezelWithFrame:inView, drawWithFrame:inView: etc. methods.
Also, I think scrollers were also a bit iffy when used as overlay scrollers: I think drawRect: wasn't called and instead the drawKnob method was called directly, or something like that. It's been a while. But I must have had a bad day doing NSScroller, because I later found out simpler ways of doing some things, so don't quote me on this and ignore it if it works for you.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden