• 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
Re: NSData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSData


  • Subject: Re: NSData
  • From: Ondra Cada <email@hidden>
  • Date: Tue, 23 Mar 2004 19:32:34 +0100

Sascha,

On Tuesday, Mar 23, 2004, at 19:07 Europe/Prague, Sascha Kuehn wrote:

how can i check if a NSData variable is empty?

Depends on what "empty" means for you:

NSData *var...

if (!var) NSLog(@"There's no NSData object in var");
if (![var length]) NSLog(@"There's no data in var");

if i display the contents of the variable with NSLog i get: <>

Then there's an NSData object, which contains nothing.
---
Ondra Hada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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.


References: 
 >NSData (From: Sascha Kuehn <email@hidden>)

  • Prev by Date: Re: NSData
  • Next by Date: Re: Binding an NSTextField to an NSString *
  • Previous by thread: Re: NSData
  • Next by thread: NSFileHandle difference Jaguar vs Panther?
  • Index(es):
    • Date
    • Thread