mattgallagher / AudioStreamer

A streaming audio player class (AudioStreamer) for Mac OS X and iPhone.
http://cocoawithlove.com
1.93k stars 553 forks source link

warning: writable atomic property 'state' cannot pair a synthesized setter/getter with a user defined setter/getter #25

Open msanders opened 13 years ago

msanders commented 13 years ago

See: http://osdir.com/ml/xcode-users/2010-06/msg00196.html

It's an easy fix. Just add this to the implementation:

- (AudioStreamerState)state
{
    @synchronized (self)
    {
        return state;
    }
}

right?

sbranding commented 12 years ago

That looks valid to me and fixes it as well.

msanders commented 12 years ago

Oops, forgot to update my comment. The correct fix is:

- (AudioStreamerState)state
{
    AudioStreamerState ret;

    @synchronized(self) {
        ret = state;
    }

    return ret;
}
gregwym commented 12 years ago

It works for me. Thx.