• 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: Well I am new to Objective-C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Well I am new to Objective-C


  • Subject: Re: Well I am new to Objective-C
  • From: Steven Woolgar <email@hidden>
  • Date: Mon, 3 Aug 2009 12:17:41 -0700

On Sun,  2 Aug 2009 12:07:31 -0700 (PDT),
email@hidden wrote:
> I have a point to an object but some API's need only object. How can I
> convert pointer to an object.
>
> NSString* ImageName = "BigBang.png";
> I have a pointer to a string (Image file name) , but [UIImage
> imageNamed:FileName];
>
> How I can make it work?

  NSString* ImageName = "BigBang.png";

just offhand, this is wrong.  NSStrings need to point to NSString
not character arrays.  This should be:

  NSString* ImageName = @"BigBang.png";
                        ^
                     Note the @ here.

W.
 _______________________________________________
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: Re: Batch build?
  • Next by Date: Configuration for Subversion
  • Previous by thread: Re: Well I am new to Objective-C
  • Next by thread: Configuration for Subversion
  • Index(es):
    • Date
    • Thread