Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Objective-c > strange warning...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 1004 of 1039
Post > Topic >>

strange warning with NSArray

by Martin Hammerschmied <marvel@[EMAIL PROTECTED] > Jul 10, 2008 at 03:53 PM

hi!

i'm having a strange warning here. the following code works fine:

operators = [[NSMutableArray alloc] init];

Add * test = [Add alloc];
[operators addObject:[test initOperatorType:OPERATOR_TYPE 
priority:ADDITIVE_OPERATOR_PRIORITY symbol:@[EMAIL PROTECTED]
"+"]];

on the other hand if i merge the last two lines like this:

[operators addObject:[[Add alloc] initOperatorType:OPERATOR_TYPE 
priority:ADDITIVE_OPERATOR_PRIORITY symbol:@[EMAIL PROTECTED]
"+"]];

i get a warning: passing argument 1 of 'addObject:' from incompatible 
pointer type

anyone a guess?
 




 3 Posts in Topic:
strange warning with NSArray
Martin Hammerschmied <  2008-07-10 15:53:00 
Re: strange warning with NSArray
Gregory Weston <uce@[E  2008-07-10 12:54:07 
Re: strange warning with NSArray
David Phillip Oster <o  2008-07-13 22:01:14 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Oct 10 20:08:48 CDT 2008.