Skip to main content
Home

Main navigation

  • Apps
  • Forum
  • Blog
    • Podcast
    • Guides
    • Hardware & Accessory Reviews
    • Bug Tracker
    • Developer Resources
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. App Development and Programming

objective-c syntax

By molly, 19 February, 2016

Forum
App Development and Programming

Hi.
I am learning basic syntax of Objective-C and need to write an underscore. Does anyone know which keys to press to make the underscore? I am using a MacBook air.
Thanks.

Options

  • Log in or register to post comments

Comments

Shift dash

By mehgcap

7 years 1 month ago

Member of the AppleVis Editorial Team

The underscore is shift with dash (the key to the right of the zero, at least on U.S. English keyboards). In case you aren't aware, and still on U.S. keyboards, the brackets are to the right of the P key. Adding shift to them will turn them into braces.

Good luck with Objective-C. I'm a bit surprised you're not starting with Swift, but ObjC is a good one to be familiar with.

Thank you.

By molly

7 years 1 month ago

In reply to Shift dash by mehgcap

Thank you.
I am using English U.S. keyboard. When I press shift dash VoiceOver says underline, but that probably means the same thing as underscore. So far Objective-C is the only programming language I have used and I like it very much.

Yes it does

By mehgcap

7 years 1 month ago

Member of the AppleVis Editorial Team

Yes, underline and underscore are the same. Sorry, I'm so used to hearing them (and "line", in NVDA) used interchangeably that I didn't even think to mention it. You should check out Swift; it's even easier to read and use, and offers some really nice advantages.

More Like This

question about speech central and generating audio (Forum Topic)
Are there new things for Braille in iOS 16? (Forum Topic)
Question About Multitrack Recording (Forum Topic)
Changes in voices (Forum Topic)
Accessible Sudoku (iOS and iPadOS App Directory)
New VoiceOver features in iOS 16 beta (Forum Topic)
Announcing Changes to Our Guidelines Regarding Discussion of Beta and Preview Versions of Apple Software (Blog Post)
Any recommendations for a hard case for my new MacBook Pro 14, 2021? (Forum Topic)

Site Information

  • About
  • Club AppleVis
  • FAQ
  • Contact

Unless stated otherwise, all content is copyright AppleVis. All rights reserved. © 2023 | Accessibility | Terms | Privacy