NSRange help
NSRange help
- Subject: NSRange help
- From: Jason Moore <email@hidden>
- Date: Mon, 1 Apr 2002 18:21:46 -0600
Can anyone help me with using an NSRange? I have a for loop in which i'm
trying to pick out certain chunks of data from an NSData object using
GetBytes:range:. I have two variables with which i'd like to create a
range (both unsigned int). However, i can't seem to get the range
working correctly.
I've tried:
NSRange range;
for (...)
{
if (condition1)
range = NSMakeRange(var1,var2);
else
range = NSMakeRange(var3, var4);
etc..
}
and a few variations on that theme, but nothing seems to work. When i
try and print a range variable in an NSLog it comes back as NULL.
Thanks for the help..
Jason
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.