Re: NSData
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>) |