• 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
warning:assignment from distinct Objective-C type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

warning:assignment from distinct Objective-C type


  • Subject: warning:assignment from distinct Objective-C type
  • From: David Blanton <email@hidden>
  • Date: Wed, 1 Jul 2009 10:26:52 -0600

I have searched and find nothing that helps with the subject line warning.

	in .h file


NSMutableArray *m_sources;

	in .mm file

	if(m_sources != nil) [m_sources release];
	

NSFileManager* defaultManager = [NSFileManager defaultManager];
NSString* volumes = @"/Volumes";


m_sources = [volumes stringsByAppendingPaths:[defaultManager directoryContentsAtPath:volumes]];


	the warning comes at the above line

	[m_source retain];


note if I do not release / retain m_sources the program crashes with exec bad access



So if someone could point to the right direction ...

Thanks!
_______________________________________________

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: warning:assignment from distinct Objective-C type
      • From: David Duncan <email@hidden>
    • Re: warning:assignment from distinct Objective-C type
      • From: Ken Thomases <email@hidden>
  • Prev by Date: asl issue
  • Next by Date: Re: warning:assignment from distinct Objective-C type
  • Previous by thread: [OT] Re: ASL issue
  • Next by thread: Re: warning:assignment from distinct Objective-C type
  • Index(es):
    • Date
    • Thread