xStep
Apr 4, 07:12 PM
rustywild sent me a private message and this is my response to that.
I only slept 4 hours last night so I might still be misunderstanding. Part of your explanation didn't make any sense given your code.
This is what I believe you have�
A dictionary where the keys will be the left most component that sets up what the right side component should display. The keys are placed into a sorted array. Each time component 0 changes, you want to update the right side component. Each time a choice is made, you want it reflected in two labels. The following code should do that for you. This is untested code.
- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component
{
if (component == kPotenciaComponent) {
NSString *selectedState = [self.potencia objectAtIndex:row];
// Update values array for key of component 0.
[self.cantidad release];
self.cantidad = [potenciavoltaje objectForKey:selectedState];
[pickerView reloadAllComponents]; // Might not need to load all, but I do.
[pickerView selectRow: row inComponent: kPotenciaComponent animated: YES];
[pickerView selectRow: 0 inComponent: kCantidadComponent animated: YES];
label1.text = [self.potencia objectAtIndex:row];
label2.text = [self.cantidad objectAtIndex: 0];
}
else {
label2.text = [self.cantidad objectAtIndex: row];
}
}
The labels are updated here because that is when the change is occurring in your selection. You may also want to set them when you first setup your two data arrays in your viewDidLoad method.
P.S. Looks like you are a native Spanish speaker. Welcome to the challenge of communicating technical problems in another language. :)
I only slept 4 hours last night so I might still be misunderstanding. Part of your explanation didn't make any sense given your code.
This is what I believe you have�
A dictionary where the keys will be the left most component that sets up what the right side component should display. The keys are placed into a sorted array. Each time component 0 changes, you want to update the right side component. Each time a choice is made, you want it reflected in two labels. The following code should do that for you. This is untested code.
- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component
{
if (component == kPotenciaComponent) {
NSString *selectedState = [self.potencia objectAtIndex:row];
// Update values array for key of component 0.
[self.cantidad release];
self.cantidad = [potenciavoltaje objectForKey:selectedState];
[pickerView reloadAllComponents]; // Might not need to load all, but I do.
[pickerView selectRow: row inComponent: kPotenciaComponent animated: YES];
[pickerView selectRow: 0 inComponent: kCantidadComponent animated: YES];
label1.text = [self.potencia objectAtIndex:row];
label2.text = [self.cantidad objectAtIndex: 0];
}
else {
label2.text = [self.cantidad objectAtIndex: row];
}
}
The labels are updated here because that is when the change is occurring in your selection. You may also want to set them when you first setup your two data arrays in your viewDidLoad method.
P.S. Looks like you are a native Spanish speaker. Welcome to the challenge of communicating technical problems in another language. :)
BrittasMac
Feb 14, 09:21 PM
I thought it stood for demi-god vigilante posse gang?
NeoMac
Mar 10, 12:36 PM
Do you still live at home with your parents, or are you away at school? If you rent an apartment you should be able to buy renters insurance and purchase additional coverage for your gear. I did this while I was away at school and renting an apartment. It was only a few extra bucks a month for the extra coverage. If you still live with your parents they can buy additional coverage on their property insurance.
Hackint0sh814
May 3, 03:24 PM
GV Connect is what I use that's iPad native.
more...
webcrush
Mar 11, 03:39 PM
its not officailly a line till someone gets behind you
Good point. And nobody's getting behind me. There's only ONE freaking item in stock. WTF would they just have ONE shipped to them, its pretty funny. Even the manager here is laughing about it. They're telling other's who even call to ask that they're sold out cuz I've already claimed the one here.
Good point. And nobody's getting behind me. There's only ONE freaking item in stock. WTF would they just have ONE shipped to them, its pretty funny. Even the manager here is laughing about it. They're telling other's who even call to ask that they're sold out cuz I've already claimed the one here.
antster94
Jun 23, 01:03 PM
7.30pm?
It'll be in the morning, 7:30 AM should be fine.
It'll be in the morning, 7:30 AM should be fine.
more...
twoodcc
Apr 15, 09:06 PM
i downloaded fah for 10.5, i have 10.6, than system preferences, folding, start (with anonymus), and i have no screen saver or window application, why dosnt it? how do i get it started? :confused:
i suggest you read the documentation here (http://folding.stanford.edu/English/MacSMPGuide)
i suggest you read the documentation here (http://folding.stanford.edu/English/MacSMPGuide)
cfairbank
Mar 10, 02:22 PM
Anyone going to wait in line tomorrow? Thinking I might head over to the store early in the afternoon to see. Probably could walk into a target or walmart and pick one up but more fun at the apple store. Who else is goin?
more...
cube
Sep 21, 09:58 AM
I myself like the 300Gb maxtor, it is a little bit noiser then the seagate but the 16mb cache does make it feel snappy. Besides it makes the most sense in $. It is jus a little bit more than less storage and a lot less than those with 400 or 500Gb. My 2 cents.
For 3 platters you can get a 400GB Seagate.
For 3 platters you can get a 400GB Seagate.
atheistpally
Feb 22, 12:13 AM
Is it 250 or 500? I'm close to 250...
more...
Eaton Photos
Mar 20, 09:47 PM
I have a Camo patterned lenscoat on my 300/2.8. I bought the Camo for two reasons; (1) to blend in with the natural surroundings around me, when shooting wildlife, and (2) because it doesn't absorb heat, like black does. What is the point of putting a black coat on a white lens??? Canon makes most of their zooms & tele's white, to help minimize heat issues. Another benefit of having a lenscoat, is that is does provide some protection to the body of the lens, but also prevents paint wear, which in turn helps minimize depreciation values, if one were to sell their lens.
I would suggest asking this question on the FM General Discussion board. You will get many more specific answers to your questions, as there is a lot more traffic there, and there are numerous members who own & use lenscoat products. In response to the statement about fitting, the coat on my 300, fits perfectly. There is some slight movement here & there, but for the most part all the different pieces stay in their respective places. Also, I would strongly advise against putting any type of tape on your lenses, except for Gaffer's tape. I utilize Gaffer's tape in a few strategic areas, but I have never wrapped any of my lenses or hoods in any type of tape.
I would suggest asking this question on the FM General Discussion board. You will get many more specific answers to your questions, as there is a lot more traffic there, and there are numerous members who own & use lenscoat products. In response to the statement about fitting, the coat on my 300, fits perfectly. There is some slight movement here & there, but for the most part all the different pieces stay in their respective places. Also, I would strongly advise against putting any type of tape on your lenses, except for Gaffer's tape. I utilize Gaffer's tape in a few strategic areas, but I have never wrapped any of my lenses or hoods in any type of tape.
BanjoBanker
Nov 30, 07:48 PM
That really sucks! There should be some recourse for this couple, that sort of thing really should be disclosed by the seller.:eek:
more...
mjstew33
Dec 6, 07:35 AM
Heh. Well, it looks like my brother is getting a Mac mini for christmas. (he's stuborn as hell I can't believe I switched him :D) So, I get the advantage of putting all his junk on it, including music, etc. He fricken' loves myspace. Everytime he tries to go there, it either freezes up Safari and FireFox or it says it needs an unknown plugin. WTF?
How do I get MySpace (http://myspace.com) working - oh, and it's the profiles w/ music and videos, etc that don't work.
Thanks,
lilstewart92
How do I get MySpace (http://myspace.com) working - oh, and it's the profiles w/ music and videos, etc that don't work.
Thanks,
lilstewart92
MrMacMan
Oct 20, 09:48 PM
Originally posted by Macmaniac
Blackspot was a very active user of the Mac collecters section, he had a pretty big collection.
Ha, Blackspot ran alot of stuff around... everywhere.
Blackspot was a very active user of the Mac collecters section, he had a pretty big collection.
Ha, Blackspot ran alot of stuff around... everywhere.
more...
miles01110
May 6, 11:27 AM
Depends on what you mean by "handle." It shouldn't be that hard to accept that in 2 years the video demands from gaming will probably be much greater than today.
agirton
Jun 18, 03:28 PM
What time do you guys think people will start to line up to buy the new iPhone 3G S
Noon Thursday.
Noon Thursday.
more...
maceleven
Jan 13, 01:42 AM
Apple and several other companies began lobbying the Federal Communications Commission, which regulates use of the airwaves in the
Cromulent
Dec 28, 06:19 AM
I cant seem to remeber having an invite :confused: i just downloaded it and created an account.... i swear... :confused:
They must have changed it since I joined.
They have. I didn't need one either.
Edit: 1 invite left.
They must have changed it since I joined.
They have. I didn't need one either.
Edit: 1 invite left.
mrblack927
Mar 16, 07:24 AM
.
munkle
Dec 4, 10:03 AM
Not much to say about the design, it's a Dreamweaver template right? It works well enough.
Just a thought but you might be better running your site off a blogging platform, like WordPress (http://wordpress.org). It would probably make things a lot easier for you, especially when it comes to updating your content.
Just a thought but you might be better running your site off a blogging platform, like WordPress (http://wordpress.org). It would probably make things a lot easier for you, especially when it comes to updating your content.
alacava
Jul 10, 08:36 PM
I'll be there, but have to go to work after, so I will be there a bit after 8.
stubeeef
Sep 23, 07:36 PM
Maybe you should post all your copy on this forum and let everyone do the work for ya.
Of course with my outstanding spelling and compostition skills, my own personal editor (skunk keeps working on me, to no avail I might add), and grammer check (I think it is on here somewherz), I could just do that my self 4 ya.
Rotz a Ruck there snapz. :p
Of course with my outstanding spelling and compostition skills, my own personal editor (skunk keeps working on me, to no avail I might add), and grammer check (I think it is on here somewherz), I could just do that my self 4 ya.
Rotz a Ruck there snapz. :p
likemyorbs
May 4, 03:30 PM
Good. Pay your taxes amazon. Why should they not have to? If there were a federal law in place they would have no other options. No more tax breaks for corporations.
iLucas
Apr 24, 08:39 PM
Hey I'm looking into buying a preferably new Macbook or Macbook Pro. I need one soon as I'm moving out for my freshman year of college. The two things I'm mainly concerned about is 500+GB, and 4GB Processor. I was wondering what might be some good places to begin looking for the right laptop.
4GB processor? Hopefully you mean ram :o
You can always look on Apples web site (http://apple.com) for new or refurb. Mac Of All Trades (http://www.macofalltrades.com/Apple_Notebooks_s/5.htm) also has a good selection of used MacBooks for fair prices.
4GB processor? Hopefully you mean ram :o
You can always look on Apples web site (http://apple.com) for new or refurb. Mac Of All Trades (http://www.macofalltrades.com/Apple_Notebooks_s/5.htm) also has a good selection of used MacBooks for fair prices.
0 comments:
Post a Comment