Re: Rotate a standard Cocoa control?
Re: Rotate a standard Cocoa control?
- Subject: Re: Rotate a standard Cocoa control?
- From: Michael David Crawford <email@hidden>
- Date: Thu, 07 May 2015 16:04:19 -0700
If you draw your own control, it might help you to get started to make
a very rough drawing of the control, one with no moving parts but with
the areas of the control clearly delineated so you know where to do
your hit-testing. Then draw your indicator with a black circle or
square. Then draw the indicator with an image from a PNG. At the
very end have a designer do nice graphics.
Michael David Crawford, Consulting Software Engineer
email@hidden
http://www.warplife.com/mdc/
Available for Software Development in the Portland, Oregon Metropolitan
Area.
On Thu, May 7, 2015 at 3:55 PM, Graham Cox <email@hidden> wrote:
>
>> On 8 May 2015, at 6:11 am, Jerry Krinock <email@hidden> wrote:
>>
>> a mid 19th-century radio receiver
>
> Really Jerry? Radio receivers weren't a thing until the 1920s!
>
>
>> Am I correct that the answer is "no"? Keep in mind that we're not just drawing here; this is a control; we need mouse clicks, etc.
>>
>> Indeed, I'm not much of a drawing and graphics guy.
>
> I suggest it's time to break out the subclass. I suspect it's not going to be a hugely difficult task. One thing I've found is a good approach to custom controls is to draw the graphical parts separately (in a drawing app) and just use them as an included resource. That way you don't get bogged down in low level drawing code, it's easy to modify or customise and you can concentrate your coding effort on the functioning of the control rather than its appearance.
>
> I wouldn't be surprised if there is a 3rd-party solution out there for this already.
>
> --Graham
>
>
>
> _______________________________________________
>
> 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
_______________________________________________
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