Re: Does NSButton wrap long titles?
Re: Does NSButton wrap long titles?
- Subject: Re: Does NSButton wrap long titles?
- From: Matt Reagan <email@hidden>
- Date: Fri, 23 Dec 2005 10:35:28 -0800
Since when did every application on a platform fall under the same UI
guidelines? I've worked on games that had very unusual UI needs and it
certainly wasn't out of poor designing. *shrug* At least I hope it
wasn't out of poor designing...
Konstantin:
Can you simply subclass it and write your own drawing routine for the control?
Happy Holidays~
On 12/23/05, I. Savant <email@hidden> wrote:
>
Konstantin:
>
>
I recommend rethinking your GUI approach if this is likely to
>
cause problems. Buttons should not have wrapping lines.
>
>
--
>
I.S.
>
>
>
On Dec 23, 2005, at 9:42 AM, Konstantin Anoshkin wrote:
>
>
> Sorry if I have missed the obvious.
>
>
>
> I'm trying to make an NSButton (simple square button, with or
>
> without an image) wrap its long title. And I can't. Yes, I tried -
>
> setWraps:. And I'm not using attributed titles.
>
>
>
> It doesn't wrap long titles in IB either. I have tried everything
>
> (or so I think) in the Line Break pop-up in the NSButton inspector.
>
> It seems that only clip and truncate options work as advertised. On
>
> the other hand, if I insert line breaks in a title manually (Option
>
> +Enter), lines do break as they should. That's not good for me
>
> because I wanted to change some buttons' titles programmatically
>
> and they can be too long to fit on one line.
>
>
>
> Is this even possible at all?
>
>
>
> Thanks in advance.
>
> Konstantin.
>
>
>
> ----------------------------------------------------------------------
>
> --
>
> The information transmitted is intended only for the person or
>
> entity to which it is addressed and may contain confidential and/or
>
> privileged material. Any review, retransmission, dissemination or
>
> other use of, or taking of any action in reliance upon, this
>
> information by persons or entities other than the intended
>
> recipient is prohibited. If you received this in error, please
>
> contact the sender and delete the material from any computer.
>
> _______________________________________________
>
> Do not post admin requests to the list. They will be ignored.
>
> Cocoa-dev mailing list (email@hidden)
>
> Help/Unsubscribe/Update your Subscription:
>
> 40gmail.com
>
>
>
> This email sent to email@hidden
>
>
_______________________________________________
>
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
>
_______________________________________________
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