Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8457521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:49:46+00:00 2026-06-10T12:49:46+00:00

Im trying to make a Mac application that speaks user inputed NSTextField text using

  • 0

Im trying to make a Mac application that speaks user inputed NSTextField text using “system” to use the say command in terminal. However, Xcode keeps giving errors.

- (IBAction)speak:(id)sender{
    system("say %@", [textinput stringValue]);
}

*textinput is the IBOutlet of the NSTextField.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T12:49:47+00:00Added an answer on June 10, 2026 at 12:49 pm

    System takes a single char* as an argument, so you have to format the command string before you can pass it to system:

    - (IBAction)speak:(id)sender {
        NSString *command = [NSString stringWithFormat:@"say %@", [textinput stringValue]];
        system([command UTF8String]);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make a Mac OS X application that asks the user for
I'm trying to make a java application on Mac that puts an icon in
I am trying to make a sample application (for mac) using the PLCrashReporter framework
I'm trying to make a simple app that sits on the Mac OSX menu
I am an amateur mac user and I'm trying to make a c++ project
I am trying to make my MVC application accessible on other computers, specifically mac
I have been trying to make my Mac application enter fullscreen now for a
Hello everyone i need some help. I'm trying to make an application for mac
I am trying to make a Facebook native iOS application, using the iOS tutorial
I am trying to make the help support for my mac application. I made

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.