Becky
I hate code!
Profile
Posts: 269
Reg: Aug 08, 2012
NYC
6,140
12/08/13 10:13 PM (11 years ago)

Circle View Error - Xcode

Using the updated version of Circle View Menu, I receive an error in Xcode as follows: Lexical or Preprocessor Issue 'BT_cell_menuList.h' file not found Any help with this would be much appreciated..
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
12/08/13 10:20 PM (11 years ago)
Saw this in a different post. It seems that the 'BT_cell_menuList.*' file is a part of the simple menu plugin, which 'used' to be a part of every downloaded package until v2.1.8 when we got the capability to choosing which plugins to download, and which to leave out. It got left out. If you add the simple menu plugin you should be cured. You don't need to use it; just add it to your bundle. Cheers! -- Smug
 
Becky
I hate code!
Profile
Posts: 269
Reg: Aug 08, 2012
NYC
6,140
like
12/08/13 10:37 PM (11 years ago)
This is all quite a puzzle! That was the trick - thank you :)
 
Crown Solutions
Aspiring developer
Profile
Posts: 463
Reg: Nov 11, 2011
MN
13,480
like
12/09/13 02:20 PM (11 years ago)
Yep, the updated code I just sent you includes a set of cell files to address this as well.
 
Becky
I hate code!
Profile
Posts: 269
Reg: Aug 08, 2012
NYC
6,140
like
12/10/13 10:31 AM (11 years ago)
I updated the code you sent me - Now I'm getting a different error that isn't amended by adding the simple menu plugin. The error is as follows: CS_cell_menuList.m Lexical or Preprocessor Issue 'test1_appDelegate.h' file not found
 
Crown Solutions
Aspiring developer
Profile
Posts: 463
Reg: Nov 11, 2011
MN
13,480
like
12/10/13 10:49 AM (11 years ago)
Oh, sorry, I forgot that when you upload/ download from BT, it replaces the appdelegate name. Just replace test1 with your appDelegate name. You will see it in every other file at the top. ***Edit- just reread my post, I should have said this- Within the CS_cell_menuList.m do a find and replace for test1 (replace with your app name) It will be there 3 times I believe. To fix the file on your server, modify that same file and replace test1 with BT. Then any other apps you download will work properly. jim
 
Becky
I hate code!
Profile
Posts: 269
Reg: Aug 08, 2012
NYC
6,140
like
12/10/13 11:36 AM (11 years ago)
I've found them in the .m files and changed them. After that I get 17 errors and I've managed to fix 7 of them and after that I'm at a loss. So, back to the beginning - am I initially doing something wrong? This is what I'm amending in each of the .m files: #import "test1_appDelegate.h" to #import "(appname)_appDelegate.h"
 
Crown Solutions
Aspiring developer
Profile
Posts: 463
Reg: Nov 11, 2011
MN
13,480
like
12/10/13 11:46 AM (11 years ago)
Looks like you are doing it right. Did you use find and replace, or did you go file by file? Find and replace is the best way to do this. If you can post a screenshot (or email it to me) that shows the error messages I would be able to tell more.
 
Becky
I hate code!
Profile
Posts: 269
Reg: Aug 08, 2012
NYC
6,140
like
12/10/13 12:07 PM (11 years ago)
I tried the find and replace and it worked great. Back to the other issue - the type still crowds into the icons - cutting off the first letter.
 
Becky
I hate code!
Profile
Posts: 269
Reg: Aug 08, 2012
NYC
6,140
like
12/10/13 12:17 PM (11 years ago)
Also - When I went back and did the find and replace, I left out the favorites plugin when I downloaded my project. This worked great. Now, when I add the favorites plugin and do the find and replace, I get the 17 errors. Something isn't meshing together. Here's a screen shot for reference: https://www.dropbox.com/s/q1p29y4zcxswgyt/Screen%20Shot%202013-12-10%20at%2012.13.35%20PM.png
 
Crown Solutions
Aspiring developer
Profile
Posts: 463
Reg: Nov 11, 2011
MN
13,480
like
12/10/13 12:17 PM (11 years ago)
Ok, iOS 6 or 7? They behave differently. On line 109 of CS_menuList.m try playing with the first two blue numbers. These set the placement of the text. You should be able to fine tune them to get it to work. I am curious also us about line 110. You could try to set NSTextAlignmentLeft to NSTextAlignmentCenter I have never tried this, but for certain people this might look cool. Lines 103-111 set the properties for the description label
 
Crown Solutions
Aspiring developer
Profile
Posts: 463
Reg: Nov 11, 2011
MN
13,480
like
12/10/13 12:21 PM (11 years ago)
Looks like a similar issue with that plugin. If you do a find and replace for BT_appDelegate to (yourappname)_appDelegate just like you did in the other one you should be good. BT_appDelegate is how they are suppose to be named, so I am not sure why this didn't change automagically in the download.
 
Becky
I hate code!
Profile
Posts: 269
Reg: Aug 08, 2012
NYC
6,140
like
12/10/13 01:08 PM (11 years ago)
Ok - Able to get rid of all the errors - thank you :) I tried to mess with the numbers in line 109. It didn't change anything. I changed NSTextAlignmentLeft to NSTextAlignmentCenter and that didn't change anything.
 
Crown Solutions
Aspiring developer
Profile
Posts: 463
Reg: Nov 11, 2011
MN
13,480
like
12/10/13 01:31 PM (11 years ago)
You will have to re-run the app in the simulator to see any changes. When you change hard code, it doesn't work like the control panel. If you have it already on your device, you will have to plug back in and re-run it.
 
Becky
I hate code!
Profile
Posts: 269
Reg: Aug 08, 2012
NYC
6,140
like
12/10/13 02:55 PM (11 years ago)
Yeah - I did a clean and rebuild. Also deleted it off the simulator and reran it. Deleted it and exited simulator and reran. No luck.
 
Crown Solutions
Aspiring developer
Profile
Posts: 463
Reg: Nov 11, 2011
MN
13,480
like
12/10/13 03:39 PM (11 years ago)
I just tried it and the code changes work perfectly for me. The second number is the one that will move the text to the right. I get the best results with this Config - (-8,-4,0,0) although I have changed the -4 down to 0 to make sure it was moving fine. All I do is make the edit, press run again on the sim and I see my changes. I tried multiple lines of description text too. With and without an icon. Is it only cutting it off on the left? If it cuts it off on the bottom you have to make the row height bigger.
 
Becky
I hate code!
Profile
Posts: 269
Reg: Aug 08, 2012
NYC
6,140
like
12/10/13 03:46 PM (11 years ago)
It's only cutting off to the left. I tried your Config you just sent, it won't budge.
 
Crown Solutions
Aspiring developer
Profile
Posts: 463
Reg: Nov 11, 2011
MN
13,480
like
12/10/13 05:00 PM (11 years ago)
Ok, the only thing I can think of is that the circleview.m file referencing the cell.m file from the simple menu and not the CS_cell file. Change the numbers in cell.m file from the simple menu and I but you it moves. Not in front of my computer to look at the specifics, but it is the only up other thing I can think of.
 
Becky
I hate code!
Profile
Posts: 269
Reg: Aug 08, 2012
NYC
6,140
like
12/10/13 06:00 PM (11 years ago)
What BT Version are you using? I was using 3.0 but will have to go with the older version now since another plugin won't work in 3.0. So, now that I'm using the older version - I'm receiving the following error when installing Circle View: Semantic Issue Property 'rootDevice' not found on object of type 'appname_appDelegate *' If there's a way past this error - I can try messing with the code and see if anything works. Or it might be that I need to work in a different plugin at this point.
 
Crown Solutions
Aspiring developer
Profile
Posts: 463
Reg: Nov 11, 2011
MN
13,480
like
12/10/13 06:18 PM (11 years ago)
I have run this on both versions, on both self hosted and the BT control panel. Can you get me a screenshot of the error? I would need to see some more info on that error to see what it is. I haven't had anyone else ask me about that one. need to know what file the error is in and what line.
 
Becky
I hate code!
Profile
Posts: 269
Reg: Aug 08, 2012
NYC
6,140
like
12/10/13 06:30 PM (11 years ago)
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
12/10/13 06:34 PM (11 years ago)
Ouch. Been there, done that. I don't know why, but for the moment, I can't get 'rootDevice' to work either. Maybe it's changed, I don't know. But I replaced it with: if([[[UIDevice currentDevice] model] isEqual: @"iPad"]){ and that works just fine. Swap that line out with your troubled line, and give it a shot. Cheers! -- Smug When I say 'been there done that', I'm not referring to Crown's plugin. I was actually working on my own plugin. But you'll find that line is used in many BT plugins.
 
Becky
I hate code!
Profile
Posts: 269
Reg: Aug 08, 2012
NYC
6,140
like
12/10/13 07:20 PM (11 years ago)
Thank Smug - nice fix. Can I be nosey and ask what plugin you're working on? Jim - Since I'll be using the old version, I'm just going to try to make another plugin work for what I'm trying to display. I forgot about the background issue and still can't get the type to budge. If it's working for you, that's not a good sign on my end. I think I'll take a break from 3.0 for awhile :) Thank you for all your help!
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
12/10/13 07:48 PM (11 years ago)
Several, although until I get the android side working no one will see it on the market. https://dl.dropboxusercontent.com/u/115208762/smugplug_01.mov I'm working on updating the code for this, and *still* working on a reasonable Android equivilent, which is taking a bit of time, lol! Cheers! -- Smug
 
Becky
I hate code!
Profile
Posts: 269
Reg: Aug 08, 2012
NYC
6,140
like
12/10/13 08:44 PM (11 years ago)
I think you were telling me about this - it's good to see it in motion. Nice work, Smug!
 

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.