Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

there's a crtiical bug in this code #46

Closed
johndpope opened this issue Jun 18, 2015 · 4 comments
Closed

there's a crtiical bug in this code #46

johndpope opened this issue Jun 18, 2015 · 4 comments

Comments

@johndpope
Copy link

I suggest you migrate it to use arc
in xcode > edit > convert to objectice-c ARC

the synthesized variables can all be deleted.
You shouldn't need any private variables here > as they were the same name - and I was seeing no respnse from the parent. I'd commit my code on fork but don't have time for thorough testing.

@interface PhWebViewController : NSObject
{
// delete these as the conflict PhFacebook *parent;

}

@Property (unsafe_unretained) IBOutlet NSWindow *window;
@Property (unsafe_unretained) IBOutlet WebView *webView;
@Property (unsafe_unretained) IBOutlet NSButton *cancelButton;
@Property (nonatomic,unsafe_unretained) PhFacebook *parent;
@Property (nonatomic, strong) NSString *permissions;

  • (IBAction) cancel: (id) sender;
@philippec
Copy link
Owner

Is there an actual bug or is conversion to ARC just a nice-to-have? Because manual retain-release still works, and doesn't require the new runtime which is why I haven't done it yet (I have an app that uses it that is old, supports old OSes).

I know how to convert to ARC. But in this case, PhFacebook is a separate framework so you can link it to an ARC-enabled app with no issues that I know of.

Unless there's an actual bug I see no reason to keep this request open with this title.

@johndpope
Copy link
Author

I found the parent wasn't getting callback when targeting 10.10
It's flacky. Having the variables with same names as Ivars is dangerous. I
was left scratching my head for hours troubleshooting.
Even if you don't convert to arc - removing the internal variables with
same name would resolve this issue.

JP

On Friday, June 19, 2015, Philippe Casgrain notifications@github.com
wrote:

Is there an actual bug or is conversion to ARC just a nice-to-have?
Because manual retain-release still works, and doesn't require the new
runtime which is why I haven't done it yet (I have an app that uses it that
is old, supports old OSes).

I know how to convert to ARC. But in this case, PhFacebook is a separate
framework so you can link it to an ARC-enabled app with no issues that I
know of.

Unless there's an actual bug I see no reason to keep this request open
with this title.


Reply to this email directly or view it on GitHub
#46 (comment)
.

John Pope | Senior Software Engineer
BG Mobile Apps Pty Ltd

Port Melbourne, Australia
T +61423562387 | E jp@bellgeorge.com tom@bellgeorge.com
IN http://www.linkedin.com/in/jdpope

@philippec
Copy link
Owner

I removed the naked ivar access which, for some reason, I only had done in one class. Try it now?

@philippec
Copy link
Owner

Having not heard back, closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants