The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   Omni Frameworks (http://forums.omnigroup.com/forumdisplay.php?f=16)
-   -   Build issues with TextEdit sample (http://forums.omnigroup.com/showthread.php?t=22791)

scorpiozj 2011-12-01 05:55 PM

Build issues with TextEdit sample
 
I read the TextEdit sample and build it successfully.
However, I meet semantic issues when I add some code, for example:

NSArray *arr = [NSArray arrayWithObjects:@"a", nil];

int num = 0;
if (num > arr.count)
{
//.....
}
it has issues like:
Comparison of integers of different signs: 'int' and 'NSUInteger' (aka 'unsigned long').

I Guess it matters with the configuration files. I notice in Omni-Global-Common.xcconfig:

// Make CG and NS geometry types be the same. Mostly doesn't matter on iPhone, but this also makes NSInteger types be defined based on 'long' consistently, which avoids conflicting warnings from clang + llvm 2.7 about printf format checking

OTHER_CFLAGS = $(value) -DNS_BUILD_32_LIKE_64


Does this setting cause the problem?

If not, could anyone tell me how to fix the problem?

Thanks!


All times are GMT -8. The time now is 06:33 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.