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

  • Home
  • SEARCH
  • 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 7866155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:18:27+00:00 2026-06-03T00:18:27+00:00

I am trying to put into my singelton a c array, in order to

  • 0

I am trying to put into my singelton a c array, in order to later build a ring buffer.
It gives me error when trying to set the property .

    @interface globals : NSObject
    {

        SInt16 bufBuf[2000];
..
    }

@property (nonatomic, assign, readwrite) SInt16 bufBuf;

then @synthesize it on the .m file

i have to say that i am going to write an audio callback buffer into bufbuf very fast.(its ok?)
whats wrong and how can i fix that ?
thanks a lot.

  • 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-03T00:18:29+00:00Added an answer on June 3, 2026 at 12:18 am

    You don’t say what the error is, but it could well be that the type you use in your property is not the same as you use in your member variable.

    Try something more like this:

    @interface globals : NSObject {
      SInt16* bufBuf;
    }
    
    @property (nonatomic, assign, readwrite) SInt16* bufBuf; 
    

    You’ll need to malloc the buffer in your init method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to put a hash %listvol into an array @fileInfo in Perl. @fileInfo
I have an excel file which I am trying to put into mysql. There
I am trying to put ads into my Android application, but I'm getting a
I've got a Roo generated webapp that I'm trying to put JQuery into (I
I am trying to put 2 columns into a website, I've got that to
I'm trying put an if statement directly into a select field in rails, with
I'm trying to put a 3D model into a PDF file. When I load
I'm trying to put some sites i crawled into a shelve, but the shelve
I am trying to put the following code into VBA. What I ideally want
I'm trying to put data from this JSON object (from Google Books API) into

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.