Re: Two arrays sharing the same adress space.
Re: Two arrays sharing the same adress space.
- Subject: Re: Two arrays sharing the same adress space.
- From: Markus Spoettl <email@hidden>
- Date: Sun, 16 Nov 2008 20:32:37 -0800
On Nov 16, 2008, at 8:22 PM, Sandro Noel wrote:
mounts = [[NSMutableArray alloc] init];
[mounts initWithContentsOfFile:[[self applicationSupportFolder]
stringByAppendingPathComponent:@"Bonjour Mounter.plist"]];
You are initializing "mounts" twice, and you're also throwing away
what the second initialization returns (which may be different from
the first because init can cause new objects to be returned). I
suppose your code should be:
mounts = [[NSMutableArray alloc] initWithContentsOfFile:[[self
applicationSupportFolder] stringByAppendingPathComponent:@"Bonjour
Mounter.plist"]];
Regards
Markus
--
__________________________________________
Markus Spoettl
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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