They found a duffel bagrustywild 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. :)
Black Deluxe Sports Duffle Bagmikes63737
Dec 6, 02:11 PM
This happens to me too, it doesn't freeze or crash, but the video and audio won't play because they're designed for WMP 10.
a Louis Vuitton duffle bagthesmileman
Apr 30, 01:58 PM
Lots more people 25 or so and the numbers have grown a lot lately. I believe we are starting to get to the point "normal people" should come out and wait. If you want a spot.
I made a duffle bag with thiscanadianluddite
Apr 25, 10:37 AM
With your help
I got it to work --
Much thanks!
more...spring Duffle bag For Salewirelessly posted (mozilla/5.0 (iphone; u; cpu iphone os 4_3_2 like mac os x; en-us) applewebkit/533.17.9 (khtml, like gecko) version/5.0.2 mobile/8h7 safari/6533.18.5)
out of curiosity, how much did you pay for it?
$800.
Boosted Mobile Duffle BagMr. Anderson
Nov 22, 03:45 PM
eyelike art is still around, ambitiouslemon is on sabatical, kela posted last in April, spikey might be around under a different name, he hasn't been seen in quite some time, and blakespot is off doing his own thing, although I think he still helps arn with the site.
I don't fall under the 'old skool' banner, but I've been around longer than most these days. But maybe you should try a reunion thread, only for anyone who's of a certain age.
D
more...Go and get ur money lil duffleI am having a bit of a problem with my Mail.
I have about 10 accounts set up and recently two of them have started constantly telling me that the server has refused the password and to enter it again. Sometimes I have to enter it 10 times, sometimes i even need to quit mail to clear it. It only happens when I leave mail open for a long time.
The tricky thing is... All 10 accounts are on the same mail server. So it's not a server issue. To further prove this, it doesn't happen on my G5 just on my PowerBook. I've tried to drop the accounts and readd them, deleted the entries out of Keychain...
iI dont want to trash the prefs file unless I have to cause I'll have to set up ALL my accounts again!
Any ideas?
Thanks
macboyX
Go and get ur money lil duffleIts a great version of lemmings in fairness and works very well. And at �3.50 you cant really complain about faults etc.
Nice way of telling me it's worth avoiding :D
more...hip ag, round duffle bag,ZombieZakk
Apr 13, 01:03 PM
still wipe and do a clean install just because it cant hurt.
the best way it to buy an external hdd and just copy and paste your data (thats what i do) or make a time machine back up
your itunes question is very easy actually copy your entire itunes folder and library to the new external drive.-> go into itunes on the MBA-> go into preferences and advanced you will see where it shows your itunes media folder location click change-> and remap it to the external driver you can only access it while plugged in but it will save a lot of space.
use waterproof duffel bagsWow! you got yourself good deal there :-)
reminds me of when my dad brought me my iMac g4 home from work :-)
more...Fleader amp; Duffel Bag BruceActually,
/Library/Java/JavaVirtualMachines/1.6.0_22-b04-307.jdk/Contents/Home/src.jar
I couldn't navigate to this location in Eclipse for the source attachment path, but nevertheless it works.
http://www.mail-archive.com/webobjects-dev@lists.apple.com/msg39781.html
4.money to burn-RansomYoung Spade
Apr 22, 01:17 AM
Haha luckily for you (and I as well) they do, for free, with no questions asked. This is widely known that the polycarbonate Macs crack around the area near the bottom of the screen (plastic) and at the palm rest around the corners.
Just call ahead, make sure they have the part in stock (tell them that it's cracked and ask if they can fix it in house) and if so, head over there, drop it off, find something to do, and come back later that day and pick it up :)
The bottom palm rest of my blackbook is cracked and I'm planning on going to the nearest Apple store as soon as I get off for the summer to get it fixed.
more...Finds A Duffel Bag StuffedHow about...
"NoImagination"
?
:)
monogram Duffle Bag.More about it here (http://www.macworld.com/news/2005/07/05/smithmicro/index.php?lsrc=mcrss).
Smith Micro makes FAXstf X (fax software) and QuickLink Mobile (wireless connectivity software) and was interested in Allume because of their newly developed compression software.Allume recently announced the development of a JPEG compression technique that yields a 30 percent reduction in the size of images without any penalty on image quality, and the company expects to be able to apply a similar technique to MPEG video and MP3 audio files.
more...duffle bag to quot;get moneyHas it ever been discovered what stonehenge was actually for?
Ask an Archaeoastronomist (http://en.wikipedia.org/wiki/Archaeoastronomy)... :]
When a group of people begin to grow plants (in order to have food for the group to survive), those people then need a good "calendar app".
Stonehedge is hardly unique in this regard. Similar "calendar apps" have been found around the world, as built by various ancient cultures. For example: in Ohio (U.S.), another "Woodhenge (http://news.nationalgeographic.com/news/2010/07/100720-woodhenge-stonehenge-ohio-fort-ancient-science/)" is currently being unearthed and examined by archaeologists, which was built by the Hopewell (circa A.D. 1 to 900) culture.
Audio: New Music Duffle Bagyayitsezekiel
Oct 20, 03:18 AM
I thought that Mac OS is immune to security threats?
no operating system is immune, mac osx just does a better job of protecting itself and hackers usually go for windows because more people use it
more...canvas duffle bag made inIrisCaddis
May 5, 07:45 PM
Ext. Drive will not mount however it shows in Disk Utility?
Back story: Been using a Lacie backup on my MBPro with Time Machine. Decided to use the ext. drive to back up my old G3 yosemite running OS 10.3. It would not show on desktop. Decided to pass on that. Went back to my new MBPro, plugged it in and states disk utility cannot repair. "disk1s3" See images. Help! I have stored data on this drive and it was working great.
What did I do ; x
cadillac duffle bag pursektbubster
Jun 24, 02:45 PM
Airport Card has been Sold to nomar (as well as a topcase)
And at this moment all he rubber feet had been spoken for, but if something changes i'll post it.
Deal pending with Alec for a rubber foot and battery.
Still got lots left and stuff I didn't list either becuase I just don't know.
Sorry - I don't have any power adapters :(
18” Black Sport Duffle BagxxBURT0Nxx
May 4, 02:01 PM
I've made up my mind on the basic 13" pro. I was going to buy it on June 5th, but I don't really think I should do that now. If possible I would like to get the machine with Lion installed already. Should I wait for WWDC? Its 4 days long so I guess I could wait it out, but would they release it the day of announcement, or would it be in a couple of weeks afterwards? I know this is all speculation, but I appreciate you input
Thanks :)
I've heard that if you buy a laptop with snow leopard now you won't ever be able to upgrade to lion. :eek:
I think you should wait for whatever comes after Lion... nobody wants to have old technology!
That's what I thought, if waiting a week or two can save me a couple of bucks, then its worth the wait.
a week or two? If lion is released in a week or two anyone who bought a computer will get a free upgrade, no sense in waiting for nothing.
http://att.macrumors.com/contest/61A95A.mov
All l'm saying is it didn't work.
It wasn't because of that line.
They don't look bad at all. :)
I'll be at the meetup AND very early in line :rolleyes:
I'll probably have that black :apple: shirt of Mac OS X Retailers (saying "Tomorrow. Available today!")
robbieduncan
Apr 24, 07:54 AM
Actually there is a malloc, it's embedded in the memcpy.
My mistake. But the underlying problem is the same: the address of returnElement is on the stack. The address of the memory the at malloced in the call to memcpy is "lost" as it is never saved into a variable. So that malloced memory is leaked.
But, if I understand you correctly, the act of copying from the heap to the stack has the same effect of free()?
No. Absolutely 100% not. You have allocated space on the heap with the malloc. The malloc returned the address for you to free later. You did not save this address so cannot call free but that is OK as memcpy also returns the destination address (so as you can put the memcpy and malloc in one line like you have). But you fail to save the address their, instead dereferencing the pointer and saving that value in a variable. So at this point the malloced space on the heap is leaked. This is a problem. The space you allocated on the stack for the double is fine: it will get cleaned up for you.
The solution is to split this into two lines. You need to have a void * pointer variable that you store the return from memcpy in. You can then dereference and cast the that into returnElement. And finally free the void * pointer returned from memcpy.