• 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
NSRange help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSRange help
      • From: Andy Lee <email@hidden>
  • Prev by Date: Dynamically Loading NSComboBox From a Database.
  • Next by Date: NSDocument updateChangeCount : unexpected behavior
  • Previous by thread: Re: Dynamically Loading NSComboBox From a Database.
  • Next by thread: Re: NSRange help
  • Index(es):
    • Date
    • Thread