• 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: odd problem with NSMutableDictionary and initWithContentsOfFile
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: odd problem with NSMutableDictionary and initWithContentsOfFile


  • Subject: re: odd problem with NSMutableDictionary and initWithContentsOfFile
  • From: Leslie Smith <email@hidden>
  • Date: Thu, 29 May 2008 14:41:56 +0100

Hi:

I found out what I was doing wrong:  rather than

[SimParamnames initWithContentsOfFile: aFile];

I should have had

SimParamnames = [SimParamnames initWithContentsOfFile: aFile];

because within the documentation for initWithContentsOfFile it says

"Return Value: An initialized object—which might be different than the original receiver ..."
and my original code assumes that the return value is the same object. I suppose the surprise is that it worked OK on 10.4.11!


--Leslie Smith

Professor Leslie S. Smith,
Dept of Computing Science and Mathematics,
University of Stirling,
Stirling FK9 4LA, Scotland
email@hidden
Tel (44) 1786 467435 Fax (44) 1786 464551
www http://www.cs.stir.ac.uk/~lss/
UKRI IEEE NNS Chapter Chair: http://ewh.ieee.org/r8/ukri/cis





--
The University of Stirling (a charity registered in Scotland, number
SC 011159) is a university established in Scotland by charter at Stirling,
FK9 4LA.  Privileged/Confidential Information may be contained in this
message.  If you are not the addressee indicated in this message (or
responsible for delivery of the message to such person), you may not
disclose, copy or deliver this message to anyone and any action taken or
omitted to be taken in reliance on it, is prohibited and may be unlawful.
In such case, you should destroy this message and kindly notify the sender
by reply email.  Please advise immediately if you or your employer do not
consent to Internet email for messages of this kind.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: odd problem with NSMutableDictionary and initWithContentsOfFile
      • From: Jens Alfke <email@hidden>
    • Re: odd problem with NSMutableDictionary and initWithContentsOfFile
      • From: Andy Lee <email@hidden>
    • Re: odd problem with NSMutableDictionary and initWithContentsOfFile
      • From: Jason Stephenson <email@hidden>
  • Prev by Date: tile opened windows
  • Next by Date: Re: odd problem with NSMutableDictionary and initWithContentsOfFile
  • Previous by thread: Re: odd problem with NSMutableDictionary and initWithContentsOfFile
  • Next by thread: Re: odd problem with NSMutableDictionary and initWithContentsOfFile
  • Index(es):
    • Date
    • Thread