• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Multiline checkbox text?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiline checkbox text?


  • Subject: Re: Multiline checkbox text?
  • From: Ricky Sharp <email@hidden>
  • Date: Tue, 25 Jul 2006 20:05:02 -0500


On Jul 25, 2006, at 7:27 PM, Jerry Krinock wrote:

on 06/07/25 16:41, Nathan Herring at email@hidden wrote:

Despite IB showing the attribute Line Break: “Word Wrap” in the inspector,
and me trying to manually hack it by calling [[checkbox cell]
setWraps:TRUE], the text in my check box does not wrap. Am I missing
something?


I’m tempted to just have a title-less textbox with an adjacent text field if
this isn’t easily solvable.

Yep. I've tried and tried, but could never get this to work. So that's
what I do, set the title to @"" and put an NSTextField adjacent to it.


I think I read somewhere that the Big Apple's Human Interface Gurus don't
like multi-line checkbox titles. So, that's probably why they make it hard
for us.

Keep in mind the following things when using this NSTextField solution:

(1) Users will need to click exactly on the checkbox.

(2) Assistive apps will have grief in that the control's title is an empty string. As a workaround, you can set up the checkbox's AXTitleUIElement to be the NSTextField (you can do so in the Accessbility panel of the checkbox's inspector in IB).

(3) The VoiceOver cursor will only render itself around the checkbox image (and not the corresponding text).

(4) VoiceOver does speak the control correctly (if you've wired up the AXTitleUIElement in #2 above), but the displayed text is a bit strange:

Given...

[ ] Multi
    line

...the VoiceOver displayed text will be: Multi * line * unchecked check box

here, the asterisks are actually a bullet character; not sure why it uses them.

Compare this to...

[ ] Single line

...which gives: Single line unchecked check box.


Now, having said all of that, the solution to a proper multi-line checkbox is to use option-Return when editing the item's text. The clickable area and VoiceOver cursor are no longer an issue. The VoiceOver text will still inject the bullet character between lines of text. I should read up more about that, I'm thinking it's some designation that the text is on multiple lines.


___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________
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


References: 
 >Re: Multiline checkbox text? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Custom View Table Views
  • Next by Date: Re: -stringValue on NSTextfield does not reflect actual contents [SOLVED]
  • Previous by thread: Re: Multiline checkbox text?
  • Next by thread: Document not opened at launch?
  • Index(es):
    • Date
    • Thread