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. :)
Hrududu
Apr 25, 11:46 PM
Just to clarify, it does chime and the light on the front does fade to off after its turned on right? If its doing all that, its most likely a bad graphics chip.
newdeal
Apr 17, 06:53 AM
I hope this is standard on ios5. It is pretty rediculous for the data to be there and yet the ipad doesnt use it
appleguy123
May 6, 10:03 PM
No. I still like the expos� and multitouch fluidity of Snow Leopard, and that keeps me from using Lion as my main os.
more...
bousozoku
Oct 25, 11:07 PM
Do we really need a smaller phone? Some are so small that they're difficult to hold now. I'd like to see one that turns off the car's engine as soon as you start to dial. :D
I still think they need to make a QuickTime device to play movies and music on the run. If it also has organising capabilities, all the better. Wireless communications would be a necessity, however.
I still think they need to make a QuickTime device to play movies and music on the run. If it also has organising capabilities, all the better. Wireless communications would be a necessity, however.
mdgm
Feb 20, 07:43 PM
You can install Snow Leopard client from a USB stick. You can google for instructions on how to prepare a USB stick.
A clean install of Snow Leopard would be ideal unless you're moving from an old Mac and would rather not setup and configure everything again.
A clean install of Snow Leopard would be ideal unless you're moving from an old Mac and would rather not setup and configure everything again.
more...
mr.steevo
Apr 25, 12:57 PM
The iMac is a better buy if you are intending to replace your keyboard and considering upgrading your monitor. The mini is good if you are happy with your current peripherals and don't need a lot of power.
I'd expect the mini to move towards the i5 and i7 processors in the next month or two. It would be best to wait until this Summer for the next OS upgrade to come out (10.7 aka Lion) otherwise you'll be looking at an OS upgrade cost to you in the future.
I'd expect the mini to move towards the i5 and i7 processors in the next month or two. It would be best to wait until this Summer for the next OS upgrade to come out (10.7 aka Lion) otherwise you'll be looking at an OS upgrade cost to you in the future.
jigglyjon
May 4, 07:48 PM
Sorry, I figured it out... at least i figured out how to fix it... not certain why it happened.
I just removed the picture folder I had it pointed to and re-added and that fixed.
I just removed the picture folder I had it pointed to and re-added and that fixed.
more...
idkew
Nov 4, 06:49 PM
you guys get what i mean...
you all get drunk together, go out and cuase damage to parked cars. the MR crew.
you all get drunk together, go out and cuase damage to parked cars. the MR crew.
vincenz
Apr 13, 11:32 PM
None of those hard drives in my opinion. Get a Hitachi 500 GB 7200 rpm drive. Best bang for buck. It's quiet, fast, and reliable. There's a reason apple uses them and Toshiba over WD and Seagate. I've had bad experiences with the whole Scorpio line of hard drives. They were always loud and spun up and down at random intervals causing beachballs.
more...
talmy
Mar 1, 10:00 AM
I've had this happen to me.
Seems to happen only when I've rebooted a system (maybe from sleep state -- see the next paragraph for a possible explanation). I guess it sees some ghost of the old system around (BonJour I expect) and renames itself to avoid conflict.
I've got a Mac mini server handling DHCP/DNS. I know this only happens on a specific system that doesn't have a fixed IP address assigned using the "Static Maps" page in Server Admin. But it might not be the server at fault. I also have an AirPort Extreme that does the Wake-on-LAN for the system. Since it responds to BonJour requests for sleeping systems, if it thinks the system being rebooted is asleep when a new one appears with a different IP address (via DHCP assignment).
If I'm right, you can solve the problem by having the DHCP service assign a fixed IP using the Static Maps.
Now if it is the server itself that is changing names, and it has a static IP, I'm baffled.
Seems to happen only when I've rebooted a system (maybe from sleep state -- see the next paragraph for a possible explanation). I guess it sees some ghost of the old system around (BonJour I expect) and renames itself to avoid conflict.
I've got a Mac mini server handling DHCP/DNS. I know this only happens on a specific system that doesn't have a fixed IP address assigned using the "Static Maps" page in Server Admin. But it might not be the server at fault. I also have an AirPort Extreme that does the Wake-on-LAN for the system. Since it responds to BonJour requests for sleeping systems, if it thinks the system being rebooted is asleep when a new one appears with a different IP address (via DHCP assignment).
If I'm right, you can solve the problem by having the DHCP service assign a fixed IP using the Static Maps.
Now if it is the server itself that is changing names, and it has a static IP, I'm baffled.
Dagless
May 19, 12:50 PM
again if you actaully have read the past articles you wont have to this is just a bonus type of deal good lord.:rolleyes:
So you pay some money to Sony and you get access to bonus things? That sounds an awful lot like paying for a service.
So you pay some money to Sony and you get access to bonus things? That sounds an awful lot like paying for a service.
more...
PowerMacMan
Jun 16, 12:06 AM
I always wanted to make a website, now more specifically I want to make one devoted to Apple, good for you for getting in the big stuff! :)
alansmallen
Oct 19, 08:18 AM
I'll be there! Wanna meet up. How many people do you think are gonna show up?
more...
seubjoh
Mar 23, 12:14 PM
i do not unfortunately, how do i get this installed? is there a way without the disks?
trip1ex
May 5, 10:48 PM
Hassle, but you're covered.
more...
macpro2000
Aug 3, 11:12 AM
It's true...Apple will correct the issues...it's just when?
reebzor
Apr 21, 08:24 PM
You dont need an Internet connection, but what you could do is plug your Macbook into any speakers, create a wifi network with your macbook, join that wifi network with your iPhone and just use the iTunes Remote App to control the music.
Lacero
Jan 4, 12:46 AM
I perused it a bit, and the screen shots did throw me in for a bit of a loop. I wasn't sure what to look out for. Perhaps Spotlight-like dimming only the relevant information and the removal of extraneous items like signatures, could help make it easier for someone to digest.
The screen shots could be saved as .GIFs instead of JPEGs for more space savings. What's the Wiki etiquette on other users updating an original Guider's screenshots?
I'm a newb at this, but something like this might be helpful. (#2.)
Here's to the Crazy Ones http://forums.macrumors.com/attachment.php?attachmentid=35452 (http://www.uriah.com/apple-qt/movies/think-different.mov)
The screen shots could be saved as .GIFs instead of JPEGs for more space savings. What's the Wiki etiquette on other users updating an original Guider's screenshots?
I'm a newb at this, but something like this might be helpful. (#2.)
Here's to the Crazy Ones http://forums.macrumors.com/attachment.php?attachmentid=35452 (http://www.uriah.com/apple-qt/movies/think-different.mov)
brayhite
May 6, 03:00 PM
Have any of you tried upgrading (for whatever reason, maybe coming from a 3GS) and been questioned about the unlimited plan? It's still some 14 months away for me but I was just curious what might transpire when I try upgrading and they see I got unlimited data even though I joined AT&T AFTER June.
Mousse
Apr 20, 11:34 AM
I like multi-computer setup. I've got a dual boot (Linux, WinXP) desktop for internet (linux), ripping videos and various minor tasks, and games (XP). The MacBook does photo editing. Lots of times, I'm using both computers at the same time.
pkshiu
May 2, 04:04 PM
Did you put it in DFU mode?
Did you mean you restored to an older iOS version? I obviously did not do that.
Did you mean you restored to an older iOS version? I obviously did not do that.
Littleodie914
Mar 17, 06:19 PM
yeah something doesn't sound right here. can you tell us exactly what flags you used when starting folding?
are you using the console client?Sure, I'm running a shortcut of the SMP version:
.../FAH6.34-win32-SMP.exe -smp -bigadv
FahMon apparently pulled itself together, and is now reporting a more reasonable 8955 points for this protein. The deadline is still the same though.
Here's my console output:
[01:06:40] + Downloading new core: FahCore_a5.exe
[01:06:41] + 10240 bytes downloaded
...yadda yadda...
[01:06:49] + 2711739 bytes downloaded
[01:06:49] Verifying core Core_a5.fah...
[01:06:49] Signature is VALID
[01:06:49]
[01:06:49] Trying to unzip core FahCore_a5.exe
[01:06:50] Decompressed FahCore_a5.exe (9326080 bytes) successfully
[01:06:55] + Core successfully engaged
[01:07:00]
[01:07:00] + Processing work unit
[01:07:00] Core required: FahCore_a5.exe
[01:07:00] Core found.
[01:07:00] Working on queue slot 01 [March 18 01:07:00 UTC]
[01:07:00] + Working ...
[01:07:00]
[01:07:00] *------------------------------*
[01:07:00] Folding@Home Gromacs SMP Core
[01:07:00] Version 2.27 (Mar 12, 2010)
[01:07:00]
[01:07:00] Preparing to commence simulation
[01:07:00] - Looking at optimizations...
[01:07:00] - Created dyn
[01:07:00] - Files status OK
[01:07:06] - Expanded 24864068 -> 30796292 (decompressed 123.8 percent)
[01:07:06] Called DecompressByteArray: compressed_data_size=24864068 data_size=3
0796292, decompressed_data_size=30796292 diff=0
[01:07:06] - Digital signature verified
[01:07:06]
[01:07:06] Project: 6901 (Run 21, Clone 10, Gen 6)
[01:07:06]
[01:07:07] Assembly optimizations on if available.
[01:07:07] Entering M.D.
[01:07:13] Mapping NT from 8 to 8
[01:07:17] Completed 0 out of 250000 steps (0%)
[02:22:51] Completed 2500 out of 250000 steps (1%)
are you using the console client?Sure, I'm running a shortcut of the SMP version:
.../FAH6.34-win32-SMP.exe -smp -bigadv
FahMon apparently pulled itself together, and is now reporting a more reasonable 8955 points for this protein. The deadline is still the same though.
Here's my console output:
[01:06:40] + Downloading new core: FahCore_a5.exe
[01:06:41] + 10240 bytes downloaded
...yadda yadda...
[01:06:49] + 2711739 bytes downloaded
[01:06:49] Verifying core Core_a5.fah...
[01:06:49] Signature is VALID
[01:06:49]
[01:06:49] Trying to unzip core FahCore_a5.exe
[01:06:50] Decompressed FahCore_a5.exe (9326080 bytes) successfully
[01:06:55] + Core successfully engaged
[01:07:00]
[01:07:00] + Processing work unit
[01:07:00] Core required: FahCore_a5.exe
[01:07:00] Core found.
[01:07:00] Working on queue slot 01 [March 18 01:07:00 UTC]
[01:07:00] + Working ...
[01:07:00]
[01:07:00] *------------------------------*
[01:07:00] Folding@Home Gromacs SMP Core
[01:07:00] Version 2.27 (Mar 12, 2010)
[01:07:00]
[01:07:00] Preparing to commence simulation
[01:07:00] - Looking at optimizations...
[01:07:00] - Created dyn
[01:07:00] - Files status OK
[01:07:06] - Expanded 24864068 -> 30796292 (decompressed 123.8 percent)
[01:07:06] Called DecompressByteArray: compressed_data_size=24864068 data_size=3
0796292, decompressed_data_size=30796292 diff=0
[01:07:06] - Digital signature verified
[01:07:06]
[01:07:06] Project: 6901 (Run 21, Clone 10, Gen 6)
[01:07:06]
[01:07:07] Assembly optimizations on if available.
[01:07:07] Entering M.D.
[01:07:13] Mapping NT from 8 to 8
[01:07:17] Completed 0 out of 250000 steps (0%)
[02:22:51] Completed 2500 out of 250000 steps (1%)
lilcosco08
May 3, 03:14 PM
you could always do what I did and buy a cheap off-contract phone that requires the data plan, then wait it out to see what the iPhone 5 adds to the table.
I bought a Palm Pixi Plus for $60 off of Newegg, it got me the unlimited data plan, plus they threw in a complimentary 5GB tethering option as well since that was also included with the Pixi Plus, due to the mobile hotspot feature, when they actually still carried the phone. They couldn't answer for sure when I asked if the tethering would transfer if I upgraded down the line, but they assured me the unlimited data would. Also, by getting the off contract phone it left my previous upgrades (I've still got 2 accrued since I haven't used an upgrade in 4 years) intact for use on the iPhone 5, or other phone if I so choose.
I was about to do that, but then I read somewhere that Verizon won't grandfather when you upgrade after they switch the plans
I bought a Palm Pixi Plus for $60 off of Newegg, it got me the unlimited data plan, plus they threw in a complimentary 5GB tethering option as well since that was also included with the Pixi Plus, due to the mobile hotspot feature, when they actually still carried the phone. They couldn't answer for sure when I asked if the tethering would transfer if I upgraded down the line, but they assured me the unlimited data would. Also, by getting the off contract phone it left my previous upgrades (I've still got 2 accrued since I haven't used an upgrade in 4 years) intact for use on the iPhone 5, or other phone if I so choose.
I was about to do that, but then I read somewhere that Verizon won't grandfather when you upgrade after they switch the plans
No comments:
Post a Comment