• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Image question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image question


  • Subject: Re: Image question
  • From: Matt Neuburg <email@hidden>
  • Date: Wed, 20 Apr 2011 10:56:07 -0700

On Wed, 20 Apr 2011 10:37:28 -0700, Robert McKeever <email@hidden> said:
>[currentDataDict setValue: currentText forKey: currentElementName];
>patientImage.image = (UIImage *)currentText;

(1) This is not an Xcode question, it's a Cocoa question. So, wrong list.

(2) Typecasting text to an image does not change the fact that it's text. That's why you're crashing - you're lying to the compiler about the type of what you're supplying, but you can't fool the runtime. What patientImage.image wants is an actual UIImage. Supply one. m.

--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 4!
http://www.apeth.net/matt/default.html#iosbook _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Image question
  • Next by Date: Re: Xcode 4 excruciatingly unresponsive
  • Previous by thread: Image question
  • Next by thread: Building a kext both for 10.5 and 10.6 possible with Xcode 3.2.6?
  • Index(es):
    • Date
    • Thread