• 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
returning value in a function argument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

returning value in a function argument


  • Subject: returning value in a function argument
  • From: Angelo Chen <email@hidden>
  • Date: Wed, 17 May 2006 17:09:10 -0700 (PDT)

Hi,

How to return NSString in a function argument?
following code does not work:

void getInfo(NSString *info)
{
	info = @"my info";
}

later in the code:

	NSString *info;
	getInfo(info);

but info has nothing

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: returning value in a function argument
      • From: Prachi Gauriar <email@hidden>
    • Re: returning value in a function argument
      • From: Sherm Pendley <email@hidden>
    • Re: returning value in a function argument
      • From: Andrew Bowman <email@hidden>
  • Prev by Date: Re: taking control of the screen and "locking" onto one window
  • Next by Date: Making newly inserted row visible in NSTableView
  • Previous by thread: Re: taking control of the screen and "locking" onto one window
  • Next by thread: Re: returning value in a function argument
  • Index(es):
    • Date
    • Thread