GithubHelp home page GithubHelp logo

Comments (8)

lukeredpath avatar lukeredpath commented on July 24, 2024

I'm unable to reproduce this; could you let me know a bit more detail. What SDK version are you building against, is this on a device or simulator?

from libpusher.

lukeredpath avatar lukeredpath commented on July 24, 2024

Also, what kind of variable are you assigning the pusher object to in your snippet? Is it an instance variable? You'll probably want to retain it as pusherWithKey:delegate:encrypted: returns an auto-released object.

from libpusher.

devinfoley avatar devinfoley commented on July 24, 2024

Hi Luke,

Thanks for the response!

After writing this, I was able to get the Sample App to run just fine in the simulator. I still have the same issue in my app though. I am using a retain @Property for pusher, so I don't think that's the issue.

I get this error on both device and simulator. My Base SDK is "iOS 5.0".

Thanks!

from libpusher.

lukeredpath avatar lukeredpath commented on July 24, 2024

Did you copy that snippet directly from your app? If so, you're assigning directly to the instance variable and not using the property setter.

from libpusher.

devinfoley avatar devinfoley commented on July 24, 2024

Thanks. That was the issue. I needed to use [self setPusher] so that it got the retain. I actually didn't know that, and figured that setting the property directly would have the same effect. Sorry for bothering with my n00b Objective C question, and thanks for the great support and lib!

from libpusher.

devinfoley avatar devinfoley commented on July 24, 2024

Closing...

from libpusher.

lukeredpath avatar lukeredpath commented on July 24, 2024

You can also use self.myProperty = whatever which will implicitly call [self setMyProperty:whatever].

from libpusher.

devinfoley avatar devinfoley commented on July 24, 2024

Thank you!

from libpusher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.