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

Use with ARC #2

Closed
mikezang opened this issue Jun 4, 2012 · 8 comments
Closed

Use with ARC #2

mikezang opened this issue Jun 4, 2012 · 8 comments

Comments

@mikezang
Copy link

mikezang commented Jun 4, 2012

How can I use your source with ARC?

@markrickert
Copy link
Contributor

@mikezang
Copy link
Author

mikezang commented Jun 4, 2012

I found the compile warning is not for ARC, they are from static analyzer, can you check this thread?
http://forums.macrumors.com/showthread.php?t=1379825&goto=newpost

Sent from my iPhone4S

On 2012/06/04, at 23:24, Mark Rickertreply@reply.github.com wrote:

Easy: http://stackoverflow.com/questions/6646052/how-can-i-disable-arc-for-a-single-file-in-a-project


Reply to this email directly or view it on GitHub:
#2 (comment)

@markrickert
Copy link
Contributor

I've submitted a pull request. #3

There's not a huge issue here, it was just the static analyzer complaining about the function names that returned retained objects.

For now, you can use my branch that fixes this if you'd like: markrickert/FPPopover@12a097aee05dd1980d900b345b63db3ce187d95b

@mikezang
Copy link
Author

mikezang commented Jun 5, 2012

I found that you used a lot of IVAR directly, why don't you use property?
for example,
[_window release];
[_parentView release];
_parentView=nil;

@markrickert
Copy link
Contributor

@mikezang,

You'd need to ask the library creator (not me). I'm guessing it's just personal coding style/preferences.

@alvises
Copy link
Owner

alvises commented Jun 7, 2012

hi @mikezang,

I have used iVar directly because this is what it has to do when we don't want to expose the iVars like _window. If you use properties you will expose the ivars outside the instance.

Thanks

@alvises
Copy link
Owner

alvises commented Jun 7, 2012

@mikezang : thanks to @markrickert now static analyzer giving warnings

@alvises alvises closed this as completed Jun 7, 2012
@mikezang
Copy link
Author

mikezang commented Jun 7, 2012

Thanks for your reply, Alvise.

I think you can put property in implement file so that you don't need worry about expose to outside.

Sent from my iPhone4S

On 2012/06/08, at 0:13, Alvise Susmelreply@reply.github.com wrote:

hi @mikezang,

I have used iVar directly because this is what it has to do when we don't want to expose the iVars like _window. If you use properties you will expose the ivars outside the instance.

Thanks


Reply to this email directly or view it on GitHub:
#2 (comment)

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

3 participants