Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 2    Views: 55

warrenpettitt
Aspiring developer
Profile
Posts: 16
Reg: Jun 14, 2015
Phoenix
3,610
06/24/15 09:13 PM (9 years ago)

value conversion issue

The app is iOS in development. I am trying to use the BT design menu plug in, I originally got 25 issues, it is down now to 9 and they are all the same..."implicit conversion loses integer precision: 'NSInteger' (aka 'long') to int". An example is - int errorCode = [error code]; another example with the same issue is: int theTag = [button tag]; All 9 issues are very similar. I am on a MAC Yosemite 10.10.3 and the Xcode is 6.3.2.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/25/15 01:55 AM (9 years ago)
You can usually to a quickie type conversion on those... int theTag = (int)[button tag]; Cheers! -- Smug Oh, Welcome to Buzztouch. Don't be shy; ask questions. Learn things. When you learn things, share things.
 
warrenpettitt
Aspiring developer
Profile
Posts: 16
Reg: Jun 14, 2015
Phoenix
3,610
like
06/25/15 09:06 PM (9 years ago)
Thank you so much - that solved the issue
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.