Hi everyone.
I am attempting to check one array's contents against another's, but so far
it hasn't been working. In the actual application, I am checking the
current open applications against an "okay" application list, and just
thought of another problem: If the user chooses only has some open on the
list, it will return that the user has some open that is not on the list.
Some example code (with different variables) is below:
[CODE]
for (int arraySort = 0; arraySort < [arrayInfo count]; arraySort++)
{
for (int arrayNewSort = 0; arrayNewSort < [arrayNewInfo
count]; arrayNewSort++)
{
if ([ arrayInfo objectAtIndex:arraySort] ==
[arrayNewInfo objectAtIndex:arrayNewSort])
{
some++;
}
}
}
If (some == [arrayNewInfo count]
{
NSLog(@"The user has only the okay applications open");
}
[END CODE]
Thanks for any help.
Sincerely,
Pierce F.
--
Pierce Freeman
[EMAIL PROTECTED]
_______________________________________________
Cocoa-dev mailing list ([email protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]