Issue 1198 in zxing: error: Deprecations: 'text' maybe deprecated because receiver type is unknown

50 views
Skip to first unread message

zx...@googlecode.com

unread,
Mar 4, 2012, 7:57:46 AM3/4/12
to zx...@googlegroups.com
Status: New
Owner: ----

New issue 1198 by sachana...@gmail.com: error: Deprecations: 'text' maybe
deprecated because receiver type is unknown
http://code.google.com/p/zxing/issues/detail?id=1198

In ZXingWidgetController.m, I get an error for those 2 lines:
[self presentResultForString:[twoDResult text]];
.....
[self performSelector:@selector(alertDelegate:) withObject:[[twoDResult
text] copy] afterDelay:0.0];

This is the error: Deprecations: 'text' maybe deprecated because receiver
type is unknown. Same error for the 2 codes, for the word 'text'

I'm using Xcode 4.2 and trying to run the app on iOS5.

Thanks!


zx...@googlecode.com

unread,
Mar 4, 2012, 12:59:19 PM3/4/12
to zx...@googlegroups.com
Updates:
Status: CannotReproduce

Comment #1 on issue 1198 by smpar...@smparkes.net: error:

Deprecations: 'text' maybe deprecated because receiver type is unknown
http://code.google.com/p/zxing/issues/detail?id=1198

I can't replicate this. I get no warnings on a build of the widget and I
can't see any reason for the warning: everything looks like it's declared
correctly. Maybe you made some changes to the code?

These checks were against the svn trunk.

zx...@googlecode.com

unread,
Mar 16, 2012, 2:46:13 AM3/16/12
to zx...@googlegroups.com

Comment #2 on issue 1198 by special...@gmail.com: error:
Deprecations: 'text' maybe deprecated because receiver type is unknown
http://code.google.com/p/zxing/issues/detail?id=1198

I have the same problem, occurred after running code modernizer.

zx...@googlecode.com

unread,
Apr 4, 2012, 10:22:26 PM4/4/12
to zx...@googlegroups.com

Comment #3 on issue 1198 by Carl...@gmail.com: error: Deprecations: 'text'
maybe deprecated because receiver type is unknown
http://code.google.com/p/zxing/issues/detail?id=1198

I also have the same problem. It also happened after running code
modernizer.

zx...@googlecode.com

unread,
Apr 4, 2012, 10:41:39 PM4/4/12
to zx...@googlegroups.com

Comment #4 on issue 1198 by smpar...@smparkes.net: error:
Deprecations: 'text' maybe deprecated because receiver type is unknown
http://code.google.com/p/zxing/issues/detail?id=1198

What is "code modernizer"? The ARC upgrade thing? See
http://code.google.com/p/zxing/issues/detail?id=969

zx...@googlecode.com

unread,
Apr 5, 2012, 5:27:02 AM4/5/12
to zx...@googlegroups.com

Comment #5 on issue 1198 by sachana...@gmail.com: error:
Deprecations: 'text' maybe deprecated because receiver type is unknown
http://code.google.com/p/zxing/issues/detail?id=1198

For all who have the same problem as me:
I downloaded the new version of Zxing: ZXing-2.0.zip (under
the 'downloads' tab)
After that I correctly implemented Zxing 2.0 into my Xcode Project
following this tutorial:
http://yannickloriot.com/2011/04/how-to-install-zxing-in-xcode-4/

That should normally work, at least by me...

zx...@googlecode.com

unread,
Sep 13, 2013, 6:57:04 AM9/13/13
to zx...@googlegroups.com

Comment #6 on issue 1198 by deepak4...@gmail.com: error:
Deprecations: 'text' maybe deprecated because receiver type is unknown
http://code.google.com/p/zxing/issues/detail?id=1198

Replace "text" with "stringValue" and compile time error vanishes.

Replace [self presentResultForString:[twoDResult text]]; with [self
presentResultForString:[twoDResult stringValue]];


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages